-
Notifications
You must be signed in to change notification settings - Fork 133
/
docker-compose.yml
53 lines (49 loc) · 1.22 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
services:
api:
environment:
DJANGO_SETTINGS_MODULE: onadata.settings.docker
build:
context: .
args:
INSTALL_DEV_DEPENDENCIES: "true"
dockerfile: ./docker/onadata-uwsgi/Dockerfile.ubuntu
depends_on:
- database
- cache
stdin_open: true
tty: true
volumes:
- ./:/srv/onadata
- savreaderwriter-exclusion:/srv/onadata/src/savreaderwriter
ports:
- "8000:8000"
command: python3.10 manage.py runserver 0.0.0.0:8000
celery:
environment:
DJANGO_SETTINGS_MODULE: onadata.settings.docker
build:
context: .
args:
INSTALL_DEV_DEPENDENCIES: "true"
dockerfile: ./docker/onadata-uwsgi/Dockerfile.ubuntu
depends_on:
- database
- cache
- api
volumes:
- ./:/srv/onadata
- savreaderwriter-exclusion:/srv/onadata/src/savreaderwriter
command: celery -A onadata.celeryapp worker -B -l INFO -E
database:
image: postgis/postgis:13-3.3-alpine
environment:
POSTGRES_PASSWORD: onadata
POSTGRES_USER: onadata
POSTGRES_DB: onadata
volumes:
- dbdata:/var/lib/postgresql/data
cache:
image: redis:alpine
volumes:
savreaderwriter-exclusion:
dbdata: