-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (33 loc) · 846 Bytes
/
docker-compose.dev.yml
File metadata and controls
36 lines (33 loc) · 846 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
# Overrides for development
volumes:
pgdata:
services:
clogs:
build:
target: dev
# Runserver for live reload
command: "python3 manage.py runserver 0.0.0.0:9000"
volumes:
- .:/clogs
depends_on:
postgres:
condition: service_healthy
ports:
- "${DJANGO_DOCKER_PORT}:9000"
postgres:
image: postgis/postgis:16-3.4
restart: unless-stopped
environment:
POSTGRES_USER: ${PGUSER:?}
POSTGRES_PASSWORD: ${PGPASSWORD:?}
POSTGRES_DB: ${PGDATABASE:?}
ports:
- ${POSTGRES_DOCKER_PORT:?}:5432
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PGUSER:?}"]
interval: 5s
timeout: 5s
retries: 5
command: ["postgres", "-c", "log_statement=none", "-c", "log_destination=stderr"]