-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (88 loc) · 2.32 KB
/
docker-compose.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
88
89
90
91
92
93
94
95
96
97
# Alin Georgescu
# University Politehnica of Bucharest
# Faculty of Automatic Control and Computers
# Computer Engeneering Department
# Math Bot (C) 2021 - The Docker stack configuration
version: '3.9'
services:
database:
image: postgres:13.3
container_name: database
restart: unless-stopped
environment:
- TZ=Europe/Bucharest
env_file:
- ./database_con_info.env
volumes:
- db_data:/var/lib/postgresql/data
networks:
- db_net
- db_admin
database_adapter:
image: alingeorgescu/database_adapter
container_name: database_adapter
depends_on:
- database
restart: unless-stopped
environment:
- TZ=Europe/Bucharest
env_file:
- ./database_con_info.env
- ./database_adapter_con_info.env
command: --debug # This should be deleted in a production environment.
networks:
- db_net
- db_adapt_net
adminer:
image: adminer:4.8.0-standalone
container_name: adminer
depends_on:
- database
restart: unless-stopped
environment:
- TZ=Europe/Bucharest
environment:
- ADMINER_DEFAULT_SERVER=database
- ADMINER_DESIGN='dracula'
ports:
- 8080:8080
networks:
- db_admin
math_bot:
image: alingeorgescu/math_bot
container_name: math_bot
depends_on:
- database_adapter
restart: unless-stopped
environment:
- TZ=Europe/Bucharest
env_file:
- ./database_adapter_con_info.env
- ./math_bot_con_info.env
volumes:
- ./logs/user_input.csv:/tmp/logs/user_input.csv
command: --debug # This should be deleted in a production environment.
networks:
- db_adapt_net
- frontend_net
frontend_adapter:
image: alingeorgescu/frontend_adapter
container_name: frontend_adapter
depends_on:
- math_bot
restart: unless-stopped
environment:
- TZ=Europe/Bucharest
env_file:
- ./math_bot_con_info.env
- ./frontend_con_info.env
command: --debug # This should be deleted in a production environment.
networks:
- frontend_net
volumes:
db_data: {}
networks:
db_net: {}
db_admin: {}
db_adapt_net: {}
frontend_net: {}