-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
54 lines (51 loc) · 1.18 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
50
51
52
53
54
services:
nivlheimweb:
depends_on:
- nivlheimapi
image: ghcr.io/unioslo/nivlheim-www
restart: always
ports:
- "443:443"
- "80:80"
volumes:
- data:/var/www/nivlheim
- logs:/var/log
environment:
- NIVLHEIM_PGHOST=postgres
- NIVLHEIM_PGUSER=nivlheim
- NIVLHEIM_PGPASSWORD=notsecret
- NIVLHEIM_PGDATABASE=nivlheim
nivlheimapi:
depends_on:
postgres:
condition: service_healthy
image: ghcr.io/unioslo/nivlheim
restart: always
ports:
- "4040:4040"
volumes:
- data:/var/www/nivlheim
- logs:/var/log
environment:
- NIVLHEIM_PGHOST=postgres
- NIVLHEIM_PGUSER=nivlheim
- NIVLHEIM_PGPASSWORD=notsecret
- NIVLHEIM_PGDATABASE=nivlheim
- NIVLHEIM_PGSSLMODE=disable
- NIVLHEIM_HTTPLISTENADDRESS=:4040
postgres:
image: postgres
restart: always
environment:
- POSTGRES_USER=nivlheim
- POSTGRES_DB=nivlheim
- POSTGRES_PASSWORD=notsecret
healthcheck:
test: ["CMD", "pg_isready", "--username=nivlheim"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
volumes:
data:
logs: