Remove MSSQL service from docker-compose
Update backend env to use external DB server (homelab.local) and set new password Drop the now‑unused depends_on, volume mount and default network sections Increment instance_id (3457 → 3463) for new system instance
This commit is contained in:
BIN
backend/main
BIN
backend/main
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
59629046-e974-4356-ba63-5f0605022367
|
||||
9979554600398963173
|
||||
3457
|
||||
3463
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,33 +1,14 @@
|
||||
services:
|
||||
mssql:
|
||||
image: mcr.microsoft.com/mssql/server:2019-latest
|
||||
container_name: mssql
|
||||
environment:
|
||||
- SA_PASSWORD=Passw0rd
|
||||
- ACCEPT_EULA=Y
|
||||
ports:
|
||||
- "1433:1433"
|
||||
volumes:
|
||||
- ./db/data:/var/opt/mssql
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: backend
|
||||
depends_on:
|
||||
- mssql
|
||||
environment:
|
||||
- DB_SERVER=mssql
|
||||
- DB_SERVER=homelab.local
|
||||
- DB_USER=sa
|
||||
- DB_PASSWORD=Passw0rd
|
||||
- DB_PASSWORD=Ou812@12!@
|
||||
- DB_NAME=CustomerDB
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
command: ./main
|
||||
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user