forked from citizensense/airsift3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 831 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 831 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
version: "3.8"
services:
db:
image: postgis/postgis:13-3.1
environment:
POSTGRES_DB: airsiftdjango
POSTGRES_USER: airsift
POSTGRES_PASSWORD: airsift
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
web:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/app
environment:
DJANGO_SETTINGS_MODULE: config.settings.local
DJANGO_SECRET_KEY: "local-dev-secret-key-not-for-production"
DJANGO_DEBUG: "True"
POSTGRES_HOST: db
POSTGRES_PORT: "5432"
POSTGRES_DB: airsiftdjango
POSTGRES_USER: airsift
POSTGRES_PASSWORD: airsift
DATABASE_URL: "postgis://airsift:airsift@db:5432/airsiftdjango"
ports:
- "8000:8000"
depends_on:
- db
volumes:
postgres_data: