DAS_2023_1/almukhammetov_bulat_lab_3/docker-compose.yaml

49 lines
1.0 KiB
YAML
Raw Normal View History

2024-01-06 16:52:19 +04:00
version: '3'
services:
db-desision-making-system:
container_name: mssql-db-desision-making-system
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: Verystrong.password123
ports:
- "1433:1433"
volumes:
- mssql-data:/var/opt/mssql
networks:
- desision-making-system-network
project-service:
container_name: project-service
depends_on:
- db-desision-making-system
build:
context: ./ProjectCRUD
dockerfile: ./ProjectCRUD/Dockerfile
ports:
- 32773:8080
- 32772:8081
networks:
- desision-making-system-network
solution-service:
container_name: solution-service
depends_on:
- db-desision-making-system
build:
context: ./SolutionsCRUD
dockerfile: ./SolutionsCRUD/Dockerfile
ports:
- 32777:8080
- 32778:8081
networks:
- desision-making-system-network
networks:
desision-making-system-network:
driver: bridge
volumes:
mssql-data: