shell-host/containers/portainer/docker-compose.yaml

22 lines
475 B
YAML

version: "2"
services:
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
restart: always
ports:
- "${PORT:-9000}:9000"
- "${EDGE_PORT:-8000}:8000"
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
portainer_data:
driver_opts:
type: none
device: ${DATA:-${PORTAINER_DIR:-/opt/portainer}/data}
o: bind