-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-dev.yml
84 lines (79 loc) · 2.18 KB
/
docker-compose-dev.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
version: '2.2'
volumes:
mysql:
filehost:
services:
db:
container_name: masz_db
image: mysql:8.0
volumes:
- mysql:/var/lib/mysql
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_PORT=${MYSQL_PORT}
- MYSQL_ROOT_HOST=%
expose:
- "3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
ports:
- "127.0.0.1:3307:3306"
networks:
- appnetwork
backend:
build:
context: backend
container_name: masz_backend
depends_on:
db:
condition: service_healthy
restart: unless-stopped
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_PORT=${MYSQL_PORT}
- MYSQL_HOST=db
- DISCORD_BOT_STATUS=${DISCORD_BOT_STATUS}
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
- DISCORD_OAUTH_CLIENT_ID=${DISCORD_OAUTH_CLIENT_ID}
- DISCORD_OAUTH_CLIENT_SECRET=${DISCORD_OAUTH_CLIENT_SECRET}
- DISCORD_SITE_ADMINS=${DISCORD_SITE_ADMINS}
- DEPLOY_MODE=${DEPLOY_MODE}
- META_SERVICE_BASE_URL=${META_SERVICE_BASE_URL}
- META_SERVICE_NAME=${META_SERVICE_NAME}
- META_SERVICE_DOMAIN=${META_SERVICE_DOMAIN}
- ENABLE_DEMO_MODE=${ENABLE_DEMO_MODE}
- ENABLE_CUSTOM_PLUGINS=${ENABLE_CUSTOM_PLUGINS}
- ABSOLUTE_PATH_TO_FILE_UPLOAD=/filehost/
- ENABLE_CORS=${ENABLE_CORS}
- ENABLE_LOW_MEMORY_PHISHING_LIST=${ENABLE_LOW_MEMORY_PHISHING_LIST}
- DEBUG_COLORS=true
- TERM=xterm-256color
- COLORTERM=truecolor
- ENABLE_EXPERIMENTAL_MESSAGE_CACHE=${ENABLE_EXPERIMENTAL_MESSAGE_CACHE}
networks:
- appnetwork
volumes:
- filehost:/filehost
nginx:
build:
context: nginx
container_name: masz_nginx
restart: unless-stopped
depends_on:
- db
- backend
ports:
- "127.0.0.1:5565:80"
networks:
- appnetwork
networks:
appnetwork:
driver: bridge