-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
db:
image: postgres:13.3
dns_search: ''
networks:
- net
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: edgetx
POSTGRES_DB: cloudbuild
POSTGRES_PASSWORD: psw
api:
image: cloudbuild
command: ./ebuild run api
build:
context: .
dockerfile: Dockerfile
env_file:
- ./api.env
networks:
- net
volumes:
- firmwares:/home/rootless/src/static/firmwares
depends_on:
- db
ports:
- "3000:3000"
worker:
image: cloudbuild
command: ./ebuild run worker
privileged: true
env_file:
- ./api.env
networks:
- net
volumes:
- firmwares:/home/rootless/src/static/firmwares
depends_on:
- db
- api
networks:
net:
volumes:
db-data:
firmwares: