-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
43 lines (39 loc) · 1021 Bytes
/
compose.dev.yaml
File metadata and controls
43 lines (39 loc) · 1021 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
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
- migrate
command: sh -c "python manage.py runserver 0.0.0.0:8000"
migrate:
extends:
file: compose.yaml
service: migrate
environment:
- POSTGRES_URL=postgres://djangouser:djangopassword@postgres-service:5432/djangodatabase
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: