-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
68 lines (62 loc) · 1.22 KB
/
docker-compose.dev.yml
File metadata and controls
68 lines (62 loc) · 1.22 KB
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
version: '3'
services:
django:
container_name: django
build: .
env_file:
- .env
volumes:
- .:/source/
- static:/source/staticfiles/
- media:/source/mediafiles/
working_dir: /source/
command: bash -c "python manage.py migrate && gunicorn server.wsgi --bind 0.0.0.0:8000"
depends_on:
- postgres
bot:
container_name: bot
build: .
env_file:
- .env
working_dir: /source/
command: python run_bot.py
depends_on:
- django
- postgres
- mongo
postgres:
container_name: postgres
image: postgres:latest
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- .env
environment:
- POSTGRES_LOG_STATEMENT=all -d postgres
ports:
- "5432:5432"
mongo:
container_name: mongo
image: mongo:latest
restart: always
volumes:
- mongo_data:/var/lib/postgresql/data/
env_file:
- .env
ports:
- "27017:27017"
nginx:
build: ./nginx
volumes:
- static:/source/staticfiles/
- media:/source/mediafiles/
ports:
- "80:80"
depends_on:
- django
volumes:
postgres_data:
mongo_data:
static:
media: