services: portainer: image: portainer/portainer-ce container_name: portainer restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock command: --admin-password ${PORTAINER_ADMIN_PASSWORD} --host=unix:///var/run/docker.sock