services: # Portainer portainer: container_name: ${PORTAINER_CONTAINER_NAME:-Portainer} image: portainer/portainer-ce:${PORTAINER_TAG:-latest} restart: ${RESTART:-unless-stopped} ports: - ${PORTAINER_PORT:-9000}:9000 volumes: - /var/run/docker.sock:/var/run/docker.sock - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-portainer}/${PORTAINER_CONTAINER_NAME:-Portainer}/data:/data