-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (37 loc) · 899 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
version: '3.1'
services:
mongodb:
image: mongo
restart: always
volumes:
- /var/lib/mongodb:/data/db
ports:
- '127.0.0.1:27017:27017'
web:
build:
context: .
dockerfile: ./Dockerfile
volumes:
restart: always
command: python manage.py runserver 0.0.0.0:8090
volumes:
- ../media_root/logs:/opt/services/my_app/media_root/logs
- ../media_root/upload_service:/opt/services/my_app/media_root/upload_service
ports:
- 9049:9049
links:
- mongodb
depends_on:
- migration
migration:
build:
context: .
dockerfile: ./Dockerfile
command: python manage.py migrate
volumes:
- ../media_root/logs:/opt/services/my_app/media_root/logs
- ../media_root/upload_service:/opt/services/my_app/media_root/upload_service
links:
- mongodb
depends_on:
- mongodb