-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
75 lines (70 loc) · 1.45 KB
/
docker-compose.prod.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
frontend:
build:
context: ./frontend-service
environment:
- HOST=https://caderk.ddns.net
- PORT=3000
ports:
- "3000:3000"
networks:
- webnet
inventory:
build:
context: ./inventory-service
environment:
- HOST=https://caderk.ddns.net
- PORT=3001
- DATABASE_HOST=inventory-db
- DATABASE_PORT=5432
- DATABASE_USER=inventory_user
- DATABASE_PASSWORD=inventory_pass
- DATABASE_NAME=inventory_db
depends_on:
inventory-db:
condition: service_healthy
ports:
- "3001:3001"
networks:
- webnet
inventory-db:
build:
context: ./inventory-service-db
ports:
- "5432:5432"
volumes:
- ./inventory-service-db/data:/var/lib/postgresql/data
networks:
- webnet
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U inventory_user -d inventory_db" ]
interval: 10s
timeout: 5s
retries: 5
digit-recognition:
build:
context: ./digit-recognition-service
environment:
- HOST=https://caderk.ddns.net
- PORT=3002
ports:
- "3002:3002"
networks:
- webnet
nginx:
build:
context: ./nginx
args:
NGINX_CONF: prod.conf
ports:
- "80:80"
- "443:443"
depends_on:
- frontend
- inventory
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro
networks:
- webnet
networks:
webnet: