forked from City-of-Helsinki/linkedevents
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
43 lines (38 loc) · 1.09 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
version: '3.7'
services:
postgres:
build:
context: ./
dockerfile: ./docker/postgres/Dockerfile
environment:
POSTGRES_USER: linkedevents
POSTGRES_PASSWORD: linkedevents
POSTGRES_DB: linkedevents
ports:
- "127.0.0.1:5555:5432"
volumes:
- postgres-data-volume:/var/lib/postgres/data
django:
build:
context: ./
dockerfile: ./docker/django/Dockerfile
target: development
environment:
- APPLY_MIGRATIONS=true
- CREATE_SUPERUSER=true
- DEBUG=true
- DATABASE_URL=postgis://linkedevents:linkedevents@postgres/linkedevents
- DEV_SERVER=true
- RUNSERVER_ADDRESS=0.0.0.0:8000
- WAIT_FOR_IT_ADDRESS=postgres:5432
volumes:
- .:/app:cached
- django-media-volume:/var/media/
ports:
- "127.0.0.1:8000:8000"
volumes:
postgres-data-volume:
django-media-volume:
networks:
default:
name: helsinki