version: '2.4' services: app: image: 'portainer/portainer-ce:2.11.0-alpine' restart: 'always' healthcheck: test: 'curl -f localhost:9000 || exit 1' interval: '1m' timeout: '10s' retries: 3 start_period: '10s' networks: - 'nginx' ports: - '8000:8000' volumes: - '/var/run/docker.sock:/var/run/docker.sock' - 'data:/data' networks: nginx: external: true volumes: data: