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
|
59629046-e974-4356-ba63-5f0605022367
|
||||||
9979554600398963173
|
9979554600398963173
|
||||||
3457
|
3463
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,33 +1,14 @@
|
|||||||
services:
|
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:
|
backend:
|
||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: backend
|
container_name: backend
|
||||||
depends_on:
|
|
||||||
- mssql
|
|
||||||
environment:
|
environment:
|
||||||
- DB_SERVER=mssql
|
- DB_SERVER=homelab.local
|
||||||
- DB_USER=sa
|
- DB_USER=sa
|
||||||
- DB_PASSWORD=Passw0rd
|
- DB_PASSWORD=Ou812@12!@
|
||||||
- DB_NAME=CustomerDB
|
- DB_NAME=CustomerDB
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
|
||||||
- ./backend:/app
|
|
||||||
command: ./main
|
command: ./main
|
||||||
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
driver: bridge
|
|
||||||
|
|||||||
Reference in New Issue
Block a user