-
Notifications
You must be signed in to change notification settings - Fork 16
/
compose.yaml
47 lines (43 loc) · 1.25 KB
/
compose.yaml
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
47
services:
postgis:
image: "postgis/postgis:12-2.5-alpine"
environment:
POSTGRES_USER: kerrokantasi
POSTGRES_PASSWORD: kerrokantasi
POSTGRES_DB: kerrokantasi
ports:
- "127.0.0.1:5555:5432"
volumes:
- postgres-data-volume:/var/lib/postgresql/data
django:
image: kerrokantasi_dev
depends_on:
- postgis
build:
context: ./
dockerfile: ./Dockerfile
target: development
environment:
- DEBUG=true
- DATABASE_URL=postgis://kerrokantasi:kerrokantasi@postgis/kerrokantasi
- WAIT_FOR_IT_HOSTS=postgis:5432
- DEV_SERVER=true
# Uncomment this if you want to configure development instance with the external file
# env_file:
# - config_dev.toml
volumes:
- .:/kerrokantasi:cached
ports:
- "127.0.0.1:8080:8000"
deploy:
image: kerrokantasi
build:
context: ./
dockerfile: ./Dockerfile
target: production
command: "echo Not running deploy image from compose"
volumes:
postgres-data-volume:
networks:
default:
name: helsinki