version: "3.8" services: portainer: image: portainer/portainer-ce:${APP_VERSION} container_name: ${APP_NAME} restart: unless-stopped env_file: .env volumes: - portainer:/data - /var/run/docker.sock:/var/run/docker.sock ports: - ${APP_HTTP_PORT}:9000 networks: default: name: ${APP_NETWORK} external: true volumes: portainer: