first try

This commit is contained in:
knoflook 2022-03-09 15:57:00 +01:00
parent 3d70bf3837
commit d0de4e023f
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,4 @@
TYPE=grafana
DOMAIN=grafana.example.com
LETS_ENCRYPT_ENV=production

View File

@ -0,0 +1,30 @@
---
version: "3.8"
services:
app:
image: grafana/grafana:8.4.3
networks:
- proxy
volumes:
- app:/var/lib/grafana
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.services.${STACK_NAME}_web.loadbalancer.server.port=3000"
- "traefik.http.routers.${STACK_NAME}_web.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}_web.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}_web.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.0.1+8.4.3"
networks:
proxy:
external: true
volumes:
app: