-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (51 loc) · 925 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (51 loc) · 925 Bytes
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
version: '2'
volumes:
dbvolume:
roothome:
services:
db:
image: postgres:9.6
ports:
- 5543:5432
env_file:
- .env
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- dbvolume:/var/lib/postgresql/data/
command: postgres -F
redis:
image: redis
web:
build: .
ports:
- 8000:8000
env_file:
- .env
volumes:
- .:/code
- /static/
- roothome:/root
command: dumb-init python manage.py runserver 0.0.0.0:8000
depends_on:
- db
- redis
celery:
build: .
env_file:
- .env
volumes_from:
- web
command: celery worker -A freesound_datasets --concurrency=${CELERY_CONCURRENCY}
depends_on:
- db
- redis
celery_beat:
build: .
env_file:
- .env
volumes_from:
- web
command: celery beat -A freesound_datasets
depends_on:
- redis