services: pg: extends: file: common.yaml service: pg server: image: mcr.microsoft.com/dotnet/sdk:7.0 depends_on: - 'pg' ports: - '40080:80' environment: CONNECTIONSTRINGS__SPACERACE: "Server=pg;Port=5432;Database=${POSTGRES_DB};User Id=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}" DOTNET_WATCH_RESTART_ON_RUDE_EDIT: 1 command: dotnet watch working_dir: "/Server" volumes: - "./Server:/Server"