-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (60 loc) · 1.37 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
version: "3.3"
services:
dgg_nginx:
container_name: dgg_web
image: nginx:latest
volumes:
- type: bind
source: ./www/conf.d/nginx.conf
target: /etc/nginx/conf.d/nginx.conf
- type: bind
source: ./www/public_html/
target: /var/www/public_html/
ports:
- "80:80"
- "443:443"
networks:
- dgg_net
depends_on:
- dgg_flask
restart: unless-stopped
dgg_flask:
container_name: dgg_api
env_file: .env
build: ./api/
command: gunicorn --config gunicorn.config.py wsgi:app
# command: python3 -m flask run --host=0.0.0.0
volumes:
- type: bind
source: ./api/app/static/docs.html
target: /app/static/docs.html
depends_on:
- dgg_postgres
networks:
- dgg_net
ports:
- "5000:5000"
- "8000:8000"
restart: unless-stopped
dgg_memcached:
container_name: dgg_cache
image: memcached:latest
networks:
- dgg_net
ports:
- "11211:11211"
restart: unless-stopped
dgg_postgres:
container_name: dgg_db
image: postgres:latest
env_file: .env
volumes:
- ./sql/initial_data:/var/lib/postgresql/initial_data
- ./sql/dgg_initial.sh:/docker-entrypoint-initdb.d/dgg_initial.sh
networks:
- dgg_net
ports:
- "5432:5432"
restart: unless-stopped
networks:
dgg_net: