Skip to content

Commit 87ac78b

Browse files
committed
Refactor Nginx and update credentials
Removed Nginx server block from `default.conf` and stopped exposing `gym-api` service publicly by removing `ports` mapping in `docker-compose.yml`. Updated database credentials for `gym-api` and `gym-db` services to enhance security. Added a comment about the new Nginx reverse proxy configuration.
1 parent e37ace7 commit 87ac78b

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

default.conf

Lines changed: 0 additions & 21 deletions
This file was deleted.

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
# REMOVED: ports: - "8080:8080" <-- We don't expose this to the public internet anymore
99
environment:
1010
- ASPNETCORE_ENVIRONMENT=Production
11-
- ConnectionStrings__DefaultConnection=Server=gym-db;Database=GymMasterDb;User Id=sa;Password=YourStrong!Password123;TrustServerCertificate=True;
11+
- ConnectionStrings__DefaultConnection=Server=gym-db;Database=GymMasterDb;User Id=sa;Password=Gymdb2025@2025;TrustServerCertificate=True;
1212
depends_on:
1313
- gym-db
1414
restart: always
@@ -18,7 +18,7 @@ services:
1818
image: mcr.microsoft.com/mssql/server:2022-latest
1919
environment:
2020
- ACCEPT_EULA=Y
21-
- MSSQL_SA_PASSWORD=YourStrong!Password123
21+
- MSSQL_SA_PASSWORD=Gymdb2025@2025
2222
volumes:
2323
- sql_data:/var/opt/mssql
2424
restart: always

0 commit comments

Comments
 (0)