-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
38 lines (35 loc) · 988 Bytes
/
compose.yaml
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: postgis/postgis:13-3.2-alpine
restart: on-failure
environment:
POSTGRES_USER: haravajarjestelma
POSTGRES_PASSWORD: haravajarjestelma
POSTGRES_DB: haravajarjestelma
ports:
- 5434:5432
volumes:
- pgdata:/var/lib/postgresql/data
container_name: haravajarjestelma-db
django:
build:
context: .
target: development
env_file:
- compose.env
environment:
DATABASE_URL: postgres://haravajarjestelma:haravajarjestelma@haravajarjestelma-db/haravajarjestelma
DATABASE_HOST: haravajarjestelma-db.helsinki
volumes:
- .:/app
ports:
- 127.0.0.1:8085:8000
depends_on:
- postgres
container_name: haravajarjestelma-backend
volumes:
pgdata:
driver: local
networks:
default:
name: helsinki