-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1019 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
49
50
51
52
53
54
55
version: '3'
services:
db:
image: postgres:10.3
platform: linux/amd64
expose:
- "5432"
redis:
image: redis
platform: linux/amd64
expose:
- "6379"
worker:
platform: linux/amd64
container_name: mridata_worker
build:
context: .
dockerfile: Dockerfile.worker
command: ['bash', 'start_worker.sh']
links:
- db
- redis
depends_on:
- redis
environment:
- DEBUG=1
- MEDIA_ROOT=/media
- TEMP_ROOT=/temp
volumes:
- ./src:/src
- ./media:/media
- ./temp:/temp
web:
container_name: mridata_web
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile.web
command: ['bash', 'start_web.sh']
ports:
- "8000:8000"
links:
- db
- redis
- worker
depends_on:
- db
environment:
- DEBUG=1
- MEDIA_ROOT=/media
- TEMP_ROOT=/temp
volumes:
- ./src:/src
- ./media:/media
- ./temp:/temp