-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprod.stack.yml
88 lines (72 loc) · 1.35 KB
/
prod.stack.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
76
77
78
79
80
81
82
83
84
85
86
87
version: '3.8'
services:
# FRONT
client:
image: id3_client
networks:
- front
- workers
ports:
- 8080:80
# BACK -> Workers
pg-controller:
image: id3_pg-controller
environment:
PROD: "true"
UNSAFE_SSL_PG: "true"
hostname: pg-controller
networks:
- workers
- db
ports:
- 5000:5000
secrets:
- postgres_password_secret
py-id3:
image: id3_py-id3
environment:
PG_CTRL_HOST: pg-controller
networks:
- workers
ports:
- 4000:4000
translator:
image: id3_translator
hostname: translator
networks:
- workers
ports:
- 6001:6001
secrets:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
# DB
postgres:
hostname: postgres
environment:
POSTGRES_DB: football
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password_secret
POSTGRES_USER: admin
image: postgres
networks:
- db
volumes:
- postgredata:/pgdata:rw
secrets:
- postgres_password_secret
networks:
front:
workers:
db:
secrets:
postgres_password_secret:
external: true
name: postgres_password_secret
AWS_ACCESS_KEY_ID:
external: true
name: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
external: true
name: AWS_SECRET_ACCESS_KEY
volumes:
postgredata: