-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
45 lines (41 loc) · 1.15 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
version: '3.7'
services:
gmw_db:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=gitmostwanted
- MYSQL_USER=gitmostwanted
- MYSQL_PASSWORD=gitmostwanted_pwd
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --default-authentication-plugin=mysql_native_password
restart: unless-stopped
gmw_redis:
image: redis:latest
restart: unless-stopped
gmw_web:
build: .
user: gitmostwanted
entrypoint: ["/opt/gitmostwanted/entrypoint.sh", "web"]
restart: unless-stopped
volumes:
- .:/opt/gitmostwanted
environment:
- GMW_APP_SETTINGS=/opt/gitmostwanted/instance.cfg
depends_on:
- gmw_db
- gmw_redis
# uncomment the following lines if you want to bind it to localhost (http://localhost:5000).
# ports:
# - "5000:5000"
gmw_celery:
build: .
user: gitmostwanted
restart: unless-stopped
entrypoint: ["/opt/gitmostwanted/entrypoint.sh", "celery"]
environment:
- GMW_APP_SETTINGS=/opt/gitmostwanted/instance.cfg
volumes:
- .:/opt/gitmostwanted
links:
- gmw_db
- gmw_redis