2023-12-26 22:40:54 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
portainer:
|
2024-03-16 23:21:15 +00:00
|
|
|
image: portainer/portainer-ce:latest
|
2023-12-26 22:40:54 +00:00
|
|
|
container_name: portainer
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
ports:
|
|
|
|
- 9000:9000/tcp
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- DOMAIN_ROOT=${DOMAIN_ROOT}
|
|
|
|
|
|
|
|
labels:
|
2024-01-04 21:42:14 +00:00
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.portainer.rule=Host(`portainer.${DOMAIN_ROOT}`)"
|
2023-12-26 22:40:54 +00:00
|
|
|
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
2024-01-04 21:42:14 +00:00
|
|
|
|
2023-12-26 22:40:54 +00:00
|
|
|
volumes:
|
|
|
|
- portainer_data:/data
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
portainer_data:
|
|
|
|
external: true
|
|
|
|
|