DAS_2023_1/sergeev_evgenii_lab_3/docker-compose.yml
Евгений Сергеев 9c18e49440 done!
2024-01-21 22:31:01 +04:00

52 lines
1.1 KiB
YAML

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: