x-common-volumes: &common-volumes - ./:/NarratoAI services: webui: build: context: . dockerfile: Dockerfile image: linyq1/narratoai:latest container_name: "webui" ports: - "8501:8501" command: [ "bash", "webui.sh" ] volumes: *common-volumes environment: - "VPN_PROXY_URL=http://host.docker.internal:7890" restart: always api: build: context: . dockerfile: Dockerfile image: linyq1/narratoai:latest container_name: "api" ports: - "8502:8080" command: [ "python3", "main.py" ] volumes: *common-volumes environment: - "VPN_PROXY_URL=http://host.docker.internal:7890" restart: always