-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local.yml
46 lines (44 loc) · 1.1 KB
/
docker-compose-local.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
version: "3.9"
services:
dto-django:
build: .
container_name: dto-django
restart: always
ports:
- "8000:8000"
command: /bin/bash entry-point.sh
environment:
- "SECRET_KEY=${SECRET_KEY}"
- "DJANGO_LOG_FILE=${DJANGO_LOG_FILE}"
- "DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}"
- "DJANGO_LOG_LEVEL=${DJANGO_LOG_LEVEL}"
- "PGUSER=${PGUSER}"
- "PGPASSWORD=${PGPASSWORD}"
- "PGDATABASE=${PGDATABASE}"
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
- "POSTGRES_DB=${POSTGRES_DB}"
- "POSTGIS_ADDR=${POSTGIS_ADDR}"
- "POSTGIS_PORT=${POSTGIS_PORT}"
volumes:
- .:/code
depends_on:
dto-postgis:
condition: service_healthy
dto-postgis:
image: postgis/postgis:13-3.4
container_name: dto-postgis
restart: always
env_file:
- .env.local
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 10s
retries: 10
volumes:
- pgdata:/var/lib/postgresql/data/
volumes:
pgdata: