docker/portainer/portainer.yml

25 lines
627 B
YAML
Raw Permalink 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.entrypoints=websecure"
- "traefik.http.routers.portainer.rule=Host(`portainer.meftimes.com`)"
2024-03-20 15:56:57 +00:00
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
restart: unless-stopped
networks:
proxy:
external: true