-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
38 lines (35 loc) · 970 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
38
services:
postgres:
image: postgres:13.4-alpine
environment:
POSTGRES_USER: tunnistamo
POSTGRES_PASSWORD: tunnistamo
POSTGRES_DB: tunnistamo
ports:
- 5432:5432
volumes:
- postgres-data-volume:/var/lib/postgresql/data
container_name: tunnistamo-db
django:
build:
context: .
target: development
env_file:
- docker-compose.env.yaml
environment:
DATABASE_URL: postgres://tunnistamo:tunnistamo@tunnistamo-db/tunnistamo
DATABASE_HOST: tunnistamo-db.helsinki
volumes:
- .:/app
- django-media-volume:/var/media/
ports:
- 8000:8000
depends_on:
- postgres
container_name: tunnistamo-backend
volumes:
postgres-data-volume:
django-media-volume:
networks:
default:
name: helsinki