Jafner.net/archive/self-hosting/portainer/docker-compose.yml

23 lines
752 B
YAML
Raw Normal View History

2020-12-15 19:42:45 -08:00
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