-
Notifications
You must be signed in to change notification settings - Fork 13
/
compose.yaml
48 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
48
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
container_name: hauki-postgres
django:
depends_on:
- postgres
build:
context: ./
dockerfile: ./Dockerfile
target: development
environment:
- DEBUG=true
- DATABASE_URL=postgres://hauki: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
command: ["start_django_development_server"]
ports:
- "127.0.0.1:8000:8000"
container_name: hauki-backend
deploy:
build:
context: ./
dockerfile: ./Dockerfile
target: production
command: "echo Not running deploy image from compose"
volumes:
postgres-data-volume:
networks:
default:
name: helsinki