-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
57 lines (51 loc) · 1.12 KB
/
docker-compose.prod.yml
File metadata and controls
57 lines (51 loc) · 1.12 KB
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
version: "3.8"
x-args: &aptd_service_common
image: penikolov23/adastra-python-task-dockerized
networks:
- prod-net
services:
aptd:
<<: *aptd_service_common
environment:
- TERM=xterm-color
- APTD__ENV=PROD
- APTD__DATASOURCE=1
- APTD__DATASINK=1\n(prod console)::key:{} | value:{} | ts:{}
deploy:
replicas: 5
resources:
limits:
cpus: "0.5"
memory: 100M
aptd-postgresink:
<<: *aptd_service_common
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- APTD__ENV=PROD
- APTD__DATASOURCE=1
- APTD__DATASINK=2\ndefault_schema\nuser\nuser\nhost.docker.internal\n5432
deploy:
replicas: 2
resources:
limits:
cpus: "0.5"
memory: 75M
postgres-db:
image: postgres
env_file:
- database.env
deploy:
replicas: 1
resources:
limits:
cpus: "0.25"
memory: 100M
volumes:
- postgres_prod_data:/var/lib/postgresql/data
networks:
- prod-net
networks:
prod-net:
volumes:
postgres_prod_data: