forked from Uninett/nav-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (65 loc) · 1.47 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.5'
services:
nav:
build:
context: .
args:
NAV_VERSION: 5.6.0
ports:
- "80:80"
- "162:162/udp"
volumes:
- logs:/var/log/nav:Z
- roomimages:/var/lib/nav/uploads/images/rooms:Z
depends_on:
- postgres
- carbon-cache
- graphite-web
environment:
- PGHOST=postgres
- PGDATABASE=nav
- PGUSER=nav
- PGPASSWORD=s3cret
- PGPORT=5432
- CARBONHOST=carbon-cache
- CARBONPORT=2003
- GRAPHITEWEB=http://graphite-web/
- NOINITDB=0
env_file:
- nav-variables.env
restart: always
postgres:
image: "docker.io/postgres:12"
volumes:
- postgres:/var/lib/postgresql/data:Z
# The following vars are documented at https://hub.docker.com/_/postgres
environment:
- POSTGRES_PASSWORD=s3cret
- POSTGRES_USER=nav
- POSTGRES_DB=nav
restart: always
carbon-cache:
build: ./carbon-cache
volumes:
- whisper:/var/lib/graphite/whisper:z
restart: always
graphite-web:
build: ./graphite-web
# We don't really want this to be public, since there is no authentication
# ports:
# - "8000:80"
environment:
- TIME_ZONE=Europe/Oslo
- CARBONLINK_HOSTS=carbon-cache:7002
volumes:
- whisper:/var/lib/graphite/storage/whisper:z
restart: always
volumes:
whisper:
driver: local
postgres:
driver: local
logs:
driver: local
roomimages:
driver: local