-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.18 KB
/
docker-compose.yml
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
53
54
55
56
57
58
59
volumes:
shared-data:
driver: local
services:
data:
image: ghcr.io/gbourniq/portfolio_analytics/data:${GIT_TAG:-latest}
build:
context: .
dockerfile: data.Dockerfile
volumes:
- shared-data:/data:rw
user: "1000:1000"
api:
image: ghcr.io/gbourniq/portfolio_analytics/api:${GIT_TAG:-latest}
build:
context: .
dockerfile: api.Dockerfile
ports:
- "8000:8000"
volumes:
- shared-data:/app/data:rw
group_add:
- "1000"
user: "1000:1000"
deploy:
resources:
limits:
cpus: '0.2'
memory: 384M
reservations:
memory: 192M
depends_on:
data:
condition: service_started
dashboard:
image: ghcr.io/gbourniq/portfolio_analytics/dashboard:${GIT_TAG:-latest}
build:
context: .
dockerfile: dashboard.Dockerfile
ports:
- "8050:8050"
volumes:
- shared-data:/app/data:rw
group_add:
- "1000"
user: "1000:1000"
deploy:
resources:
limits:
cpus: '0.8'
memory: 1024M
reservations:
memory: 512M
depends_on:
data:
condition: service_started