KazV2/dockers/portainer/docker-compose.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2024-11-29 00:35:08 +01:00
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
ports:
- 9000:9000
2024-12-07 15:08:57 +01:00
- 9443:9443 # HTTPS
- 8000:8000 # WS/WSS pour Edge Agents
2024-11-29 00:35:08 +01:00
networks:
- portainerNet
volumes:
- portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
labels:
- "traefik.enable=true"
# Frontend
- "traefik.http.routers.frontend.rule=Host(`portainer.${domain}`)"
# - "traefik.docker.network=portainerNet"
- "traefik.http.routers.frontend.entrypoints=websecure"
- "traefik.http.services.frontend.loadbalancer.server.port=9000"
- "traefik.http.routers.frontend.service=frontend"
# Edge
- "traefik.http.routers.edge.rule=Host(`edge.${domain}`)"
- "traefik.http.routers.edge.entrypoints=websecure"
- "traefik.http.services.edge.loadbalancer.server.port=8000"
- "traefik.http.routers.edge.service=edge"
volumes:
portainer_data:
networks:
portainerNet:
external: true
name: portainerNet