-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
79 lines (76 loc) · 2 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
70
71
72
73
74
75
76
77
78
79
version: "3.6"
services:
grafana:
image: grafana/grafana:11.4.0
ports:
- 3000:3000
user: "472"
networks:
- fresh
environment:
# https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/feature-toggles/
# GF_<SECTION>_<KEY>=value
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ORG_ROLE=Editor
- GF_PANELS_DISABLE_SANITIZE_HTML=true
- GF_SECURITY_ALLOW_EMBEDDING=true
# - GF_AUTH_ANONYMOUS_ORG_NAME=fresh
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
# mount the grafana db, strictly because grafana db migrations are
# extremely slow, making boot time 5m+ without a pre-migrated db.
- ./grafana/data:/var/lib/grafana
deploy:
restart_policy:
condition: on-failure
delay: 300s
window: 120s
freshagent:
image: cdaringe/freshawair
networks:
- fresh
init: true
command: |
--db-host=freshdb --awair-endpoint=http://grant.awair/air-data/latest --awair-endpoint=http://malcom.awair/air-data/latest
restart: "on-failure"
logging:
driver: json-file
options:
max-size: "200k"
max-file: "10"
build:
context: .
dockerfile: ./Dockerfile
deploy:
restart_policy:
condition: on-failure
delay: 300s
window: 120s
freshdb:
image: timescale/timescaledb:latest-pg12
networks:
- fresh
ports:
- 5432
volumes:
- ./db.init:/docker-entrypoint-initdb.d
# // `-v ./db:/var/lib/postgresql/data`,
environment:
- POSTGRES_USER=fresh
- POSTGRES_PASSWORD=fresh
- TIMESCALEDB_TELEMETRY=off
restart: "on-failure"
logging:
driver: json-file
options:
max-size: "200k"
max-file: "10"
# deploy:
# restart_policy:
# condition: on-failure
# delay: 300s
# window: 120s
networks:
fresh: