Compose-Examples/examples/portainer/docker-compose.yml

36 lines
962 B
YAML
Raw Normal View History

2023-02-15 21:45:31 +00:00
version: '3'
services:
portainer:
image: portainer/portainer-ee:latest # or use community edition via portainer/portainer-ce
container_name: portainer-ee # may rename to portainer-ce if community edition is used
2023-02-15 21:45:31 +00:00
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- portainer_data:/data
ports:
- 9443:9443
expose:
- 9443
- 9000
- 8000
#networks:
# - proxy
2023-02-15 21:45:31 +00:00
#labels:
# - traefik.enable=true
# - traefik.http.routers.portainer.rule=Host(`portainer.example.com`)
# - traefik.http.services.portainer.loadbalancer.server.port=9000
# - traefik.docker.network=proxy
# # Part for local lan services only
# - traefik.http.routers.portainer.middlewares=local-ipwhitelist@file
#networks:
# proxy:
# external: true
2023-02-15 21:45:31 +00:00
volumes:
portainer_data:
external: true
name: portainer_data