-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.yaml
More file actions
99 lines (95 loc) · 1.95 KB
/
stack.yaml
File metadata and controls
99 lines (95 loc) · 1.95 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
version: '3'
services:
authenticationDB:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- authenticationdbdata:/var/lib/mysql
networks:
- authentication_net
authenticationDBmigration:
image: authenticationdbmigration
environment:
- DATABASE_URL=authenticationDB
networks:
- authentication_net
authentication:
image: authentication
environment:
- DATABASE_URL=authenticationDB
ports:
- 5001:5001
networks:
- authentication_net
electionsDB:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- electiondbdata:/var/lib/mysql
networks:
- admin_net
- daemon_net
electionDBmigration:
image: electiondbmigration
environment:
- DATABASE_URL=electionsDB
networks:
- admin_net
- daemon_net
admin:
image: admin
environment:
- DATABASE_URL=electionsDB
ports:
- 5002:5002
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
networks:
- admin_net
redis-server:
image: redis
ports:
- 6379:6379
environment:
- TZ=Europe/Belgrade
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
networks:
- daemon_net
- station_net
votingstation:
image: votingstation
environment:
- DATABASE_URL=electionsDB
ports:
- 5003:5003
deploy:
replicas: 3
networks:
- station_net
daemon:
image: daemon
environment:
- DATABASE_URL=electionsDB
- TZ=Europe/Belgrade
networks:
- daemon_net
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
volumes:
authenticationdbdata:
electiondbdata:
networks:
authentication_net:
driver: overlay
admin_net:
driver: overlay
daemon_net:
driver: overlay
station_net:
driver: overlay