-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (43 loc) · 987 Bytes
/
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
version: '3.4'
services:
db:
restart: always
container_name: mongo_db
image: mongo
environment:
MONGO_INITDB_DATABASE: db
MONGO_INITDB_ROOT_USERNAME: decide
MONGO_INITDB_ROOT_PASSWORD: decide
MONGO_INITDB_USER: deicde
MONGO_INITDB_PD: decide
volumes:
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.js:ro
- db:/data/db
web:
restart: always
container_name: decide_web
image: decide_web:latest
build: .
command: sh -c "python manage.py migrate && gunicorn -w 5 decide.wsgi --timeout=500 -b 0.0.0.0:5000"
expose:
- "5000"
volumes:
- static:/app/static
depends_on:
- db
nginx:
restart: always
container_name: decide_nginx
image: decide_nginx:latest
build:
context: .
dockerfile: Dockerfile-nginx
volumes:
- static:/app/static
ports:
- "8000:80"
depends_on:
- web
volumes:
db:
static: