generated from DefangSamples/sample-django-channels-redis-postgres-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.dev.yaml
35 lines (32 loc) · 846 Bytes
/
compose.dev.yaml
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
services:
app:
extends:
file: compose.yaml
service: app
volumes:
- ./app:/app
healthcheck: {}
environment:
- REDIS_URL=redis://redis-service:6379
- POSTGRES_URL=postgres://djangouser:djangopassword@postgres-service:5432/djangodatabase
- DEBUG="True"
depends_on:
- redis-service
- postgres-service
command: sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
redis-service:
extends:
file: compose.yaml
service: redis-service
postgres-service:
extends:
file: compose.yaml
service: postgres-service
environment:
- POSTGRES_DB=djangodatabase
- POSTGRES_USER=djangouser
- POSTGRES_PASSWORD=djangopassword
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: