forked from City-of-Helsinki/smbackend
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (48 loc) · 1.27 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
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/postgresql/data
servicemap:
build:
context: ./
dockerfile: ./Dockerfile
environment:
- APPLY_MIGRATIONS=true
command: start_django_development_server
env_file:
- config_dev.env
volumes:
- django-media:/var/media/
- smbackend:/smbackend/
ports:
- "8000:8000"
restart: on-failure
depends_on:
postgres:
condition: service_started
redis:
image: redis
ports:
- "6379:6379"
# Todo, fix when Turku frontend has a working image
# servicemap-ui:
# #image: helsinki/servicemap-ui:staging
# image: turku/servicemap-ui:staging
# ports:
# - "2048:2048"
# env_file:
# - config_dev_ui.env
# depends_on:
# - servicemap
volumes:
postgres-data:
django-media:
smbackend: