Files
canopy-workloads/mermaid/docker-compose.yml
T

23 lines
876 B
YAML

services:
mermaid:
image: ghcr.io/mermaid-js/mermaid-live-editor:latest
container_name: ${SERVICE_NAME}-live-editor
restart: always
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.${SERVICE_NAME}.rule=Host(`${SERVICE_DOMAIN}`)"
- "traefik.http.routers.${SERVICE_NAME}.entrypoints=websecure"
- "traefik.http.routers.${SERVICE_NAME}.tls=true"
- "traefik.http.routers.${SERVICE_NAME}.service=${SERVICE_NAME}-svc"
- "traefik.http.routers.${SERVICE_NAME}-red.rule=Host(`${SERVICE_DOMAIN}`)"
- "traefik.http.routers.${SERVICE_NAME}-red.entrypoints=web"
- "traefik.http.routers.${SERVICE_NAME}-red.middlewares=https-redirect@docker"
- "traefik.http.services.${SERVICE_NAME}-svc.loadbalancer.server.port=8080"
networks:
proxy:
name: ${PROXY_NETWORK}
external: true