-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (49 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
50 lines (49 loc) · 1.04 KB
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
services:
db:
image: postgres
ports:
- "5433:5432" # Don't clash host port with commcare-hq
# persist data beyond lifetime of container
volumes:
- postgres_data:/var/lib/postgresql
environment:
- POSTGRES_DB=commcare_sync
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
redis:
image: redis
ports:
- "6380:6379" # Don't clash host port with commcare-hq
# persistent storage
command: redis-server --appendonly yes
volumes:
- redis_data:/data
web:
build:
context: .
dockerfile: Dockerfile.dev
command: uv run manage.py runserver 0.0.0.0:8001
volumes:
- .:/code
ports:
- "8001:8001"
env_file:
- ./.env.dev
depends_on:
- db
- redis
celery:
build:
context: .
dockerfile: Dockerfile.dev
command: uv run celery -A commcare_sync worker -l INFO -B
volumes:
- .:/code
env_file:
- ./.env.dev
depends_on:
- db
- redis
volumes:
postgres_data:
redis_data: