2023-02-15 21:45:31 +00:00
|
|
|
services:
|
2024-11-04 12:08:51 +00:00
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
portainer:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: portainer/portainer-ce:2.23.0-alpine # or portainer-ee for enterprise edition
|
|
|
|
container_name: portainer-ce # or portainer-ee for enterprise edition
|
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
|
2023-09-27 09:42:11 +00:00
|
|
|
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
|
|
|
|
|
2023-09-27 09:42:11 +00:00
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
|
|
|
portainer_data:
|
|
|
|
external: true
|
|
|
|
name: portainer_data
|