forked from City-of-Helsinki/smbackend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 923 Bytes
/
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
version: '3.8'
services:
postgres:
build: ./docker/postgres/
environment:
- POSTGRES_USER=servicemap
- POSTGRES_PASSWORD=servicemap
- POSTGRES_DB=servicemap
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgres/data
servicemap:
build:
context: ./
dockerfile: ./Dockerfile
command: start_django_development_server
env_file:
- .env
volumes:
- django-media:/var/media/
ports:
- "8000:8000"
restart: on-failure
depends_on:
- postgres
servicemap-ui:
image: helsinki/servicemap-ui:staging
ports:
- "2048:2048"
env_file:
- config_dev_ui.env.example
depends_on:
- servicemap
volumes:
postgres-data:
django-media: