-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (98 loc) · 2.25 KB
/
docker-compose.yml
File metadata and controls
105 lines (98 loc) · 2.25 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "3.4"
services:
db:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 30
avote1:
command: ["1"]
stop_signal: SIGINT
depends_on:
db:
condition: service_healthy
build:
context: ./src/tallier
dockerfile: Dockerfile
secrets:
- avote_ca.crt
- source: avote1_key.pem
target: certfile.pem
environment:
TALLIERS_INTERNAL: "${TALLIERS_INTERNAL}"
WEBSITE_URL: "${WEBSITE_URL}"
MAIL_DISABLED: "${MAIL_DISABLED}"
EMAIL_ADDRESS: "${EMAIL_ADDRESS}"
ports:
- "18080:18080"
- "8080:8080"
avote2:
command: ["2"]
stop_signal: SIGINT
depends_on:
db:
condition: service_healthy
build:
context: ./src/tallier
dockerfile: Dockerfile
secrets:
- avote_ca.crt
- source: avote2_key.pem
target: certfile.pem
environment:
TALLIERS_INTERNAL: "${TALLIERS_INTERNAL}"
WEBSITE_URL: "${WEBSITE_URL}"
MAIL_DISABLED: "${MAIL_DISABLED}"
EMAIL_ADDRESS: "${EMAIL_ADDRESS}"
ports:
- "18081:18080"
- "8081:8080"
avote3:
command: ["3"]
stop_signal: SIGINT
depends_on:
db:
condition: service_healthy
build: src/tallier
environment:
TALLIERS_INTERNAL: "${TALLIERS_INTERNAL}"
WEBSITE_URL: "${WEBSITE_URL}"
MAIL_DISABLED: "${MAIL_DISABLED}"
EMAIL_ADDRESS: "${EMAIL_ADDRESS}"
secrets:
- avote_ca.crt
- source: avote3_key.pem
target: certfile.pem
ports:
- "18082:18080"
- "8082:8080"
webserver:
image: avote_webserver
build: src/webserver
stop_signal: SIGINT
env_file:
- .env
environment:
TALLIERS_EXTERNAL: "${TALLIERS_EXTERNAL}"
ports:
- 80:5000
mailserver:
image: namshi/smtp
restart: always
environment:
GMAIL_USER: "${GMAIL_USER}"
GMAIL_PASSWORD: "${GMAIL_PASSWORD}"
secrets:
avote_ca.crt:
file: ./keys/avote_ca.crt
avote1_key.pem:
file: ./keys/avote1.pem
avote2_key.pem:
file: ./keys/avote2.pem
avote3_key.pem:
file: ./keys/avote3.pem