-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.example.yml
102 lines (98 loc) · 2.72 KB
/
docker-compose.example.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.5"
volumes:
grafana_data:
go-carbon_data:
networks:
internal:
driver: bridge
external:
driver: bridge
#t#htraefik-net:
#t#h external: true
x-logging: &default-logging
driver: "local"
options:
max-size: "20m"
max-file: "5"
services:
carbon-relay-ng:
image: grafana/carbon-relay-ng
depends_on:
- go-carbon
volumes:
- ./grafanaConfig/carbon-relay-ng:/conf
ports:
- 127.0.0.1:2003:2003
networks:
- internal
logging: *default-logging
go-carbon:
image: ghcr.io/go-graphite/go-carbon
volumes:
- ./grafanaConfig/go-carbon/go-carbon.conf:/etc/go-carbon/go-carbon.conf
- ./grafanaConfig/go-carbon:/etc/go-carbon/
- ./go-carbon-storage:/var/lib/graphite/whisper
#- ./logs/goCarbon:/var/log/go-carbon
networks:
- internal
logging: *default-logging
carbon-api:
image: pieterbrandsen/carbonapi-0.15.6
volumes:
- ./grafanaConfig/carbonapi/carbonapi.yml:/etc/carbonapi.yml
- ./grafanaConfig/carbonapi:/conf:ro
- ./logs/carbonApi:/log
depends_on:
- go-carbon
networks:
- internal
- external
logging: *default-logging
grafana:
#t container_name: grafana
image: grafana/grafana-oss:9.3.6-ubuntu
volumes:
- grafana_data:/var/lib/grafana
- ./grafanaConfig/grafana:/etc/grafana
- ./logs/grafana:/var/log/grafana
ports:
- 3000:3000
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: "curl -fsSL -o /dev/null http://localhost:3000/login"
interval: 10s
timeout: 1s
retries: 3
networks:
- external
#t#h- traefik-net
logging: *default-logging
#t labels:
#t - "traefik.enable=true"
#t - "traefik.http.routers.grafana.rule=Host(`grafana.localhost`)"
#t#h - "traefik.docker.network=traefik-net"
#t - "traefik.http.services.grafana.loadbalancer.server.port=3000"
#t#h - "traefik.http.routers.grafana.entrypoints=websecure"
#t#h - "traefik.http.routers.grafana.tls.certresolver=letsencrypt"
#ttraefik:
#t image: traefik:v2.5.4
#t container_name: traefik
#t command:
#t - "--log.level=DEBUG"
#t - "--api.insecure=true"
#t - "--api.dashboard=true"
#t - "--providers.docker=true"
#t - "--providers.docker.exposedbydefault=false"
#t - "--entrypoints.web.address=:80"
#t - "--entrypoints.websecure.address=:443"
#t - "--providers.file.directory=/CustomTraefik/"
#t - "--providers.file.watch=true"
#t volumes:
#t - /var/run/docker.sock:/var/run/docker.sock
#t - ./traefikConfig/:/CustomTraefik/
#t ports:
#t - 80:80
#t - 443:443
#t - 8080:8080
#t logging: *default-logging