Jafner.net/active projects/self-hosting/portainer/docker-compose.yml
2024-07-15 15:35:16 -07:00

23 lines
752 B
YAML

version: "3.3"
services:
portainer:
image: portainer/portainer-ce
container_name: portainer-ce
command: -H unix:///var/run/docker.sock
networks:
- web
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:docker.jafner.net"
- "traefik.port=9000"
- "traefik.docker.network=web"
volumes:
portainer_data:
networks:
web:
external: true