docker düzenlemesi

This commit is contained in:
Sedat ÖZTÜRK 2025-11-03 15:18:03 +03:00
parent e939a83bc5
commit c476c7175b

View file

@ -36,25 +36,15 @@ services:
- db
sql:
image: mcr.microsoft.com/mssql/server:2022-CU19-ubuntu-22.04
container_name: kurs-platform-data-sql
profiles: ["sql"]
user: root
environment:
- SA_PASSWORD=NvQp8s@l
- ACCEPT_EULA=Y
- MSSQL_PID=Developer
- MSSQL_PID=Web
ports:
- "1433:1433"
- 1433:1433
volumes:
- mssql:/var/opt/mssql
networks:
db:
aliases:
- sql
healthcheck:
test: ["CMD-SHELL", "sqlcmd -S localhost -U sa -P NvQp8s@l -Q 'SELECT 1'"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped
- db