Files
canopy-workloads/excalidraw/docker-compose.yml
T
kiskaadee 7ca043f253 chore(excalidraw): standardize restart policies to unless-stopped
Updates the Excalidraw stack to ensure containers restart automatically on host reboot or daemon crash.
- Adds `restart: unless-stopped` to the main `excalidraw` service (previously defaulted to `no`).
- Changes `excalidraw-room` restart policy from `on-failure` to `unless-stopped`.
2026-08-21 12:31:17 -05:00

47 lines
1.9 KiB
YAML

services:
excalidraw:
image: excalidraw/excalidraw:latest
restart: unless-stopped
environment:
- REACT_APP_BACKEND_V2_GET_URL=https://${DOMAIN}/api/v2
- REACT_APP_BACKEND_V2_POST_URL=https://${DOMAIN}/api/v2
- REACT_APP_WS_SERVER_URL=wss://${DOMAIN}/socket.io
networks:
- public
labels:
- "traefik.enable=true"
- "traefik.http.routers.excalidraw.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.excalidraw.entrypoints=websecure"
- "traefik.http.routers.excalidraw.tls=true"
- "traefik.http.routers.excalidraw.tls.certresolver=${CERT_RESOLVER}"
- "traefik.http.routers.excalidraw.service=excalidraw-svc"
- "traefik.http.routers.excalidraw-red.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.excalidraw-red.entrypoints=web"
- "traefik.http.routers.excalidraw-red.middlewares=https-redirect@docker"
- "traefik.http.services.excalidraw-svc.loadbalancer.server.port=80"
excalidraw-room:
image: excalidraw/excalidraw-room:latest
restart: unless-stopped
networks:
- public
labels:
- "traefik.enable=true"
- "traefik.http.routers.excalidraw-room.rule=Host(`${DOMAIN}`) && PathPrefix(`/socket.io`)"
- "traefik.http.routers.excalidraw-room.entrypoints=websecure"
- "traefik.http.routers.excalidraw-room.tls=true"
- "traefik.http.routers.excalidraw-room.tls.certresolver=${CERT_RESOLVER}"
- "traefik.http.routers.excalidraw-room.service=excalidraw-room-svc"
- "traefik.http.routers.excalidraw-room-red.rule=Host(`${DOMAIN}`) && PathPrefix(`/socket.io`)"
- "traefik.http.routers.excalidraw-room-red.entrypoints=web"
- "traefik.http.routers.excalidraw-room-red.middlewares=https-redirect@docker"
- "traefik.http.services.excalidraw-room-svc.loadbalancer.server.port=8080"
networks:
public:
name: ${NETWORK_NAME}
external: true