27 lines
576 B
YAML
27 lines
576 B
YAML
services:
|
|
portainer:
|
|
container_name: portainer
|
|
image: portainer/portainer-ce:lts
|
|
restart: always
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./volumes/portainer_data:/data
|
|
ports:
|
|
- 9443:9443
|
|
# - 8000:8000 # Remove if you do not intend to use Edge Agents
|
|
networks:
|
|
- traefik-proxy
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=traefik-proxy"
|
|
|
|
volumes:
|
|
portainer_data:
|
|
name: portainer_data
|
|
|
|
networks:
|
|
default:
|
|
name: portainer_network
|
|
traefik-proxy:
|
|
external: true
|