-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·79 lines (70 loc) · 1.54 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
version: "3.7"
services:
db:
restart: always
container_name: pg_gomoku
image: postgres:latest
ports:
- "${POSTGRES_PORT}:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
env_file:
- .env
pg_admin:
image: dpage/pgadmin4:latest
container_name: pgadmin4_gomoku
ports:
- "15432:80"
environment:
- GUNICORN_THREADS=4
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
depends_on:
- db
env_file:
- .env
redis:
image: "redis:alpine"
container_name: redis_gomoku
ports:
- "${REDIS_PORT}:6379"
command: redis-server --requirepass ${REDIS_PASSWORD}
restart: always
env_file:
- .env
backend:
env_file:
- .env
build: .
container_name: backend_gomoku
ports:
- "8888:8888"
restart: always
volumes:
- ./app/:/gomoku/app
links:
- db
- redis
environment:
POSTGRES_SERVICE_USER: ${POSTGRES_USER}
POSTGRES_SERVICE_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_SERVICE_HOST: db
POSTGRES_SERVICE_PORT: ${POSTGRES_PORT}
DEBUG: ${DEBUG}
command: bash -c "python start.py"
depends_on:
- db
- redis
nginx:
restart: always
build: ./nginx/
container_name: nginx_gomoku
ports:
- "80:80"
volumes:
- ./gomoku_front/build:/usr/src/app/static/
links:
- backend:backend
depends_on:
- backend