-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.yml
55 lines (50 loc) · 1005 Bytes
/
deploy.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
version: "3"
volumes:
local_mongodb_data: {}
local_postgres_data: {}
local_postgres_data_backups: {}
services:
nginx:
image: nginx
container_name: nginx
ports:
- "80:80/tcp"
volumes:
- /home/ubuntu/config/nginx:/etc/nginx/conf.d
depends_on:
- web
mongodb:
restart: always
image: mongo
container_name: "docker-mongodb"
volumes:
- local_mongodb_data:/data/db
env_file:
- ./.envs/.mongodb
ports:
- "27017:27017"
web:
restart: always
environment:
- DJANGO_SECRET_KEY=local
- DJANGO_DEBUG=False
build: ./
command: >
bash -c "./manage.py migrate &&
gunicorn config.wsgi:application --bind 0.0.0.0:8000"
volumes:
- ./:/code
ports:
- "8000:8000"
links:
- mongodb
depends_on:
- mongodb
documentation:
restart: always
build: ./
command: "mkdocs serve "
volumes:
- ./:/code
ports:
- "8001:8001"