forked from City-of-Helsinki/hauki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (46 loc) · 1.31 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.7'
services:
postgres:
image: "postgres:12-alpine"
environment:
POSTGRES_USER: hauki
POSTGRES_PASSWORD: hauki
POSTGRES_DB: hauki
ports:
- "127.0.0.1:5555:5432"
volumes:
- postgres-data-volume:/var/lib/postgresql/data
dev:
image: hauki_dev
depends_on:
- postgres
build:
context: ./
dockerfile: ./Dockerfile
target: development
environment:
- DEBUG=true
- DATABASE_URL=postgres://hauki:hauki@postgres/hauki
- WAIT_FOR_IT_ADDRESS=postgres:5432
# Uncomment this if you want to configure development instance with the external file
# env_file:
# - config_dev.env
volumes:
- .:/hauki:cached
- $HOME/maintenance:/maintenance
- $HOME/hauki_logs:/logs
command: ["start_django_development_server"]
ports:
- "127.0.0.1:8000:8000"
deploy:
image: hauki
build:
context: ./
dockerfile: ./Dockerfile
target: production
command: "e echo Not running deploy image from compose"
volumes:
postgres-data-volume:
networks:
default:
name: helsinki