This commit is contained in:
Sparky
2025-10-09 20:50:54 +01:00
parent 76dba70066
commit 47f577d8c8
4 changed files with 84 additions and 1 deletions

1
.gitignore vendored
View File

@@ -13,3 +13,4 @@ syncthing-bigbox/index-v2
*.log
coolify/sentinel
syncthing-sparky/index-v2
syncthing-sparky/index-v0.14.0.db-migrated

View File

@@ -0,0 +1,10 @@
SERVICE_NAME_GRAFANA=grafana
SERVICE_FQDN_GRAFANA=grafana.site.quack-lab.dev
SERVICE_FQDN_GRAFANA_3000=grafana.site.quack-lab.dev
SERVICE_PASSWORD_GRAFANA=9@^F@93qHv48JXHvi3Bf
SERVICE_URL_GRAFANA=https://grafana.site.quack-lab.dev
SERVICE_URL_GRAFANA_3000=https://grafana.site.quack-lab.dev
GF_SECURITY_ADMIN_PASSWORD=${SERVICE_PASSWORD_GRAFANA}
GF_SERVER_DOMAIN=${SERVICE_URL_GRAFANA}
GF_SERVER_ROOT_URL=${SERVICE_URL_GRAFANA}
GF_SECURITY_ADMIN_USER=admin

View File

@@ -0,0 +1,72 @@
services:
grafana:
image: grafana/grafana
environment:
SERVICE_URL_GRAFANA_3000: 'https://grafana.site.quack-lab.dev'
GF_SERVER_ROOT_URL: '${SERVICE_URL_GRAFANA}'
GF_SERVER_DOMAIN: '${SERVICE_URL_GRAFANA}'
GF_SECURITY_ADMIN_PASSWORD: '${SERVICE_PASSWORD_GRAFANA}'
COOLIFY_RESOURCE_UUID: jococcw004848ck4k0owwww0
COOLIFY_CONTAINER_NAME: grafana-jococcw004848ck4k0owwww0
COOLIFY_FQDN: grafana.site.quack-lab.dev
COOLIFY_URL: 'https://grafana.site.quack-lab.dev'
SERVICE_NAME_GRAFANA: grafana
volumes:
- '/mnt/data/persistent/monitoring/grafana/data:/var/lib/grafana'
- '/mnt/data/persistent/monitoring/grafana/config:/etc/grafana'
healthcheck:
test:
- CMD
- curl
- '-f'
- 'http://127.0.0.1:3000/api/health'
interval: 5s
timeout: 20s
retries: 10
container_name: grafana-jococcw004848ck4k0owwww0
restart: unless-stopped
labels:
- coolify.managed=true
- coolify.version=4.0.0-beta.434
- coolify.serviceId=5
- coolify.type=service
- coolify.name=grafana-jococcw004848ck4k0owwww0
- coolify.resourceName=grafana
- coolify.projectName=services
- coolify.serviceName=grafana
- coolify.environmentName=production
- coolify.pullRequestId=0
- coolify.service.subId=7
- coolify.service.subType=application
- coolify.service.subName=grafana
- traefik.enable=true
- traefik.http.middlewares.gzip.compress=true
- traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
- traefik.http.routers.http-0-jococcw004848ck4k0owwww0-grafana.entryPoints=http
- traefik.http.routers.http-0-jococcw004848ck4k0owwww0-grafana.middlewares=redirect-to-https
- 'traefik.http.routers.http-0-jococcw004848ck4k0owwww0-grafana.rule=Host(`grafana.site.quack-lab.dev`) && PathPrefix(`/`)'
- traefik.http.routers.http-0-jococcw004848ck4k0owwww0-grafana.service=http-0-jococcw004848ck4k0owwww0-grafana
- traefik.http.routers.https-0-jococcw004848ck4k0owwww0-grafana.entryPoints=https
- traefik.http.routers.https-0-jococcw004848ck4k0owwww0-grafana.middlewares=gzip
- 'traefik.http.routers.https-0-jococcw004848ck4k0owwww0-grafana.rule=Host(`grafana.site.quack-lab.dev`) && PathPrefix(`/`)'
- traefik.http.routers.https-0-jococcw004848ck4k0owwww0-grafana.service=https-0-jococcw004848ck4k0owwww0-grafana
- traefik.http.routers.https-0-jococcw004848ck4k0owwww0-grafana.tls.certresolver=letsencrypt
- traefik.http.routers.https-0-jococcw004848ck4k0owwww0-grafana.tls=true
- traefik.http.services.http-0-jococcw004848ck4k0owwww0-grafana.loadbalancer.server.port=3000
- traefik.http.services.https-0-jococcw004848ck4k0owwww0-grafana.loadbalancer.server.port=3000
- 'caddy_0.encode=zstd gzip'
- 'caddy_0.handle_path.0_reverse_proxy={{upstreams 3000}}'
- 'caddy_0.handle_path=/*'
- caddy_0.header=-Server
- 'caddy_0.try_files={path} /index.html /index.php'
- 'caddy_0=https://grafana.site.quack-lab.dev'
- caddy_ingress_network=jococcw004848ck4k0owwww0
networks:
jococcw004848ck4k0owwww0: null
volumes: { }
networks:
jococcw004848ck4k0owwww0:
name: jococcw004848ck4k0owwww0
external: true
configs: { }
secrets: { }

View File

@@ -2,7 +2,7 @@ services:
pocketbase:
image: 'ghcr.io/coollabsio/pocketbase:latest'
volumes:
- '/mnt/data/docker/volumes/captain--pocketbase-autoclip/_data:/pb_data'
- '/mnt/data/docker/volumes/captain--pocketbase-autoclip/_data:/app/pb_data'
container_name: pocketbase-ngs84osgkwccwkg4w8kwc4gs
restart: unless-stopped
labels: