Created
September 9, 2023 23:51
-
-
Save pingkunga/f9ef176081e085eac6ca0e24fe3ba3bd to your computer and use it in GitHub Desktop.
docker compose excalidraw https with traefik
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
traefik2: | |
image: traefik:latest | |
restart: always | |
command: | |
- "--log.level=DEBUG" | |
- "--api.insecure=true" | |
- "--providers.docker=true" | |
- "--providers.docker.exposedbydefault=true" | |
- "--entrypoints.web.address=:80" | |
- "--entrypoints.websecure.address=:443" | |
- "--entrypoints.web.http.redirections.entryPoint.to=websecure" | |
- "--entrypoints.web.http.redirections.entryPoint.scheme=https" | |
ports: | |
- 80:80 | |
- 443:443 | |
networks: | |
traefik: | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
container_name: traefik | |
excalidraw: | |
image: excalidraw/excalidraw:latest | |
restart: always | |
networks: | |
traefik: | |
environment: | |
- LOG_LEVEL=debug | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.excalidraw.tls=true" | |
- "traefik.http.routers.excalidraw.rule=Host(`excalidraw.cloud.local`)" | |
- "traefik.http.routers.excalidraw.entrypoints=websecure" | |
- "traefik.http.services.excalidraw.loadbalancer.server.port=80" | |
container_name: excalidraw | |
networks: | |
traefik: | |
driver: bridge | |
name: traefik | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.19.0.0/16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment