24 lines
610 B
YAML
24 lines
610 B
YAML
|
version: "3"
|
||
|
services:
|
||
|
portainer:
|
||
|
image: portainer/portainer-ce
|
||
|
container_name: portainer
|
||
|
restart: unless-stopped
|
||
|
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.http.routers.portainer.rule=Host(`portainer.jafner.net`)
|
||
|
- traefik.http.routers.portainer.tls.certresolver=lets-encrypt
|
||
|
- traefik.http.services.portainer.loadbalancer.server.port=9000
|
||
|
|
||
|
volumes:
|
||
|
portainer_data:
|
||
|
networks:
|
||
|
web:
|
||
|
external: true
|