-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
41 lines (39 loc) · 1.04 KB
/
docker-compose.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
services:
django:
build:
context: ./DjangoPMS
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./DjangoPMS:/usr/src/app/
ports:
- "8000:8000"
environment:
- DJANGO_DEBUG=true
- ALLOWED_HOSTS=localhost,127.0.0.1,.ngrok-free.app
- DJANGO_SECRET_KEY=django-insecure-n7)p+1qf)1uj(6c^a0ovck&6r34wcn+5+-11lh^3e!7g#9yh0s
- DJANGO_SUPERUSER_USERNAME=admin
- DJANGO_SUPERUSER_PASSWORD=admin
- DB_USER=root
- DB_PASSWORD=secret
- DB_HOST=db
depends_on:
db:
condition: service_healthy
db:
image: postgis/postgis:13-3.1-alpine
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=secret
ports:
# If you have postgres installed on your system, please change the port number
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 5s
retries: 5
volumes:
pg_data: