forked from minmatarfleet/minmatar.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
166 lines (153 loc) · 3.73 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: '2.0'
services:
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- database:/var/lib/mysql
- ./backend/sql:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
networks:
- local-network
healthcheck:
test:
[
"CMD",
"healthcheck.sh",
"--connect",
"--innodb_initialized"
]
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
redis:
image: redis:6.0.9-alpine
networks:
- local-network
volumes:
- "redis:/var/lib/redis"
- "redis:/data"
app:
build:
context: ./backend/
dockerfile: Dockerfile
working_dir: /opt/minmatar
command: ./app-start.sh
env_file:
- backend/.env
networks:
- local-network
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
bot:
build:
context: ./bot/
dockerfile: Dockerfile
working_dir: /opt/bot
command: python3 main.py
env_file:
- bot/.env
networks:
- local-network
depends_on:
db:
condition: service_healthy
frontend:
build:
context: ./frontend/
dockerfile: Dockerfile
depends_on:
- app
env_file:
- frontend/.env
networks:
local-network:
aliases:
- local.minmatar.org
ports:
- "4321:4321"
proxy:
image: nginx:stable
restart: always
volumes:
- ./proxy/reverse_proxy_local.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "80:80"
- "443:443"
depends_on:
- app
- frontend
networks:
local-network:
aliases:
- api.local.minmatar.org
beat:
build:
context: ./backend/
dockerfile: Dockerfile
restart: always
env_file: backend/.env
command: celery -A app beat -l info
networks:
- local-network
depends_on:
- db
- app
celery:
build:
context: ./backend/
dockerfile: Dockerfile
restart: always
env_file: backend/.env
command: celery -A app worker -l info
networks:
- local-network
depends_on:
- db
- app
mumble_murmur:
image: mumblevoip/mumble-server:v1.4.230-6
hostname: murmur
restart: on-failure
volumes:
- murmur_data:/data
- ./mumble/murmur/murmur.ini:/data/murmur.ini
environment:
- MUMBLE_CUSTOM_CONFIG_FILE=/data/murmur.ini
- MUMBLE_VERBOSE=true
networks:
- local-network
ports:
- 64738:64738
- 64738:64738/udp
expose:
- 6502
mumble_auth:
build:
context: ./backend/.
dockerfile: Dockerfile.mumble
restart: on-failure
command: python3 mumble.py
env_file:
- .env
networks:
- local-network
depends_on:
- mumble_murmur
- db
expose:
- 6502
volumes:
database: {}
redis: {}
murmur_data: {}
networks:
local-network: