25 lines
627 B
YAML
25 lines
627 B
YAML
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`)"
|
|
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|