version: '3' services: db-entering-system: container_name: npgsql-db-entering-system image: postgres:14.0 environment: POSTGRES_DB: "testdb" POSTGRES_USER: "zhenya" POSTGRES_PASSWORD: "12345678" PGDATA: "/var/lib/postgresql/data/pgdata" ports: - "5434:5432" volumes: - postgresql-data:/var/lib/postgresql/data networks: - entering-system-network student-service: container_name: student-service depends_on: - db-entering-system environment: - ASPNETCORE_ENVIRONMENT=Development build: context: ./Students dockerfile: ./Students/Dockerfile ports: - 8086:80 networks: - entering-system-network lesson-service: container_name: lesson-service depends_on: - db-entering-system environment: - ASPNETCORE_ENVIRONMENT=Development build: context: ./Lessons dockerfile: ./Lessons/Dockerfile ports: - 8088:80 networks: - entering-system-network networks: entering-system-network: driver: bridge volumes: postgresql-data: