-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
69 lines (59 loc) · 1.14 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.7'
volumes:
postgres_data_dev: {}
postgres_backup_dev: {}
redis_data: {}
services:
memcached:
image: memcached:1.5.16
redis:
image: redis:5.0.5-buster
volumes:
- redis_data:/data
command: redis-server --appendonly yes
postgres:
image: postgres:10.9-alpine
env_file: ./.docker-env
volumes:
- postgres_data_dev:/var/lib/postgresql/data
- postgres_backup_dev:/backups
django:
&django
init: true
build:
context: .
dockerfile: ./docker/django/Dockerfile
depends_on:
- memcached
- postgres
env_file: ./.docker-env
ports:
- "8000:8000"
volumes:
- ./src:/app
jupyter:
<<: *django
depends_on:
- postgres
ports:
- "8888:8888"
command: jupyter_entrypoint.sh
celeryworker:
<<: *django
depends_on:
- redis
- postgres
ports: []
command: celery -A config worker -l INFO
celerybeat:
<<: *django
depends_on:
- redis
- postgres
ports: []
command: /start-celerybeat
flower:
<<: *django
ports:
- "5555:5555"
command: /start-flower