-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
64 lines (62 loc) · 1.46 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
volumes:
dbvolume:
home:
services:
db:
image: postgres:16
environment:
POSTGRES_USER: dunya
POSTGRES_DB: dunya
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- dbvolume:/var/lib/postgresql/data/
command: postgres -F
redis:
image: redis:7.2
web:
build: .
image: dunya
pull_policy: never
command: python3 manage.py runserver 0.0.0.0:8000
init: true
volumes:
- .:/code
- ./media:/media/
- /Users/alastair/Downloads/arab-andalusian:/incoming/andalusian
- ${DUNYA_DATA}:/incoming
- ${PYCOMPMUSIC_LOC}:/sources/pycompmusic/
- home:/root
ports:
- "8000:8000"
depends_on:
- db
- redis
env_file:
- environment
# All celery hosts should listen on a queue of the same name as their host/name (-Q and -n)
celeryimport:
image: dunya
pull_policy: never
command: celery --app dunya worker -l info -Q import,celeryimport -n celeryimport
volumes:
- .:/code
- ${DUNYA_DATA}:/incoming
- ${PYCOMPMUSIC_LOC}:/sources/pycompmusic/
env_file:
- environment
depends_on:
- db
- redis
celeryprocess:
image: dunya
pull_policy: never
command: celery --app dunya worker -l info -Q celery,celeryprocess -n celeryprocess
volumes:
- .:/code
- ${DUNYA_DATA}:/incoming
- ${PYCOMPMUSIC_LOC}:/sources/pycompmusic/
env_file:
- environment
depends_on:
- db
- redis