forked from City-of-Helsinki/open-city-profile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 1.03 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
version: '3.7'
services:
postgres:
image: helsinkitest/postgis:9.6-2.5-alpine
restart: on-failure
environment:
POSTGRES_USER: open_city_profile
POSTGRES_PASSWORD: open_city_profile
POSTGRES_DB: open_city_profile
ports:
- 5433:5432
volumes:
- pgdata:/var/lib/postgresql/data
container_name: profile-db
django:
build:
context: .
target: development
env_file:
- docker-compose.env.yaml
environment:
DATABASE_URL: postgres://open_city_profile:open_city_profile@profile-db/open_city_profile
DATABASE_HOST: "profile-db"
volumes:
- .:/app
- django-media-volume:/var/media/
ports:
- "8080:8080"
depends_on:
- postgres
container_name: profile-backend
volumes:
pgdata:
driver: local
django-media-volume:
networks:
default:
name: helsinki