docker/portainer/portainer.yml

25 lines
641 B
YAML
Raw Normal View History

2024-03-20 15:56:57 +00:00
version: "3"
services:
portainer:
image: portainer/portainer-ce
container_name: portainer
security_opt:
- no-new-privileges:true
networks:
- proxy
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer-secure.entrypoints=websecure"
- "traefik.http.routers.portainer-secure.rule=Host(`portainer.meftimes.com`)"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
restart: unless-stopped
networks:
proxy:
external: true