feat: update docker-compose and nginx configurations for improved service connectivity and security

This commit is contained in:
Daniel Volz
2025-12-24 02:37:45 +01:00
parent 55d0603dce
commit 583704da6f
4 changed files with 311 additions and 3461 deletions
+10
View File
@@ -5,12 +5,15 @@
services:
backend:
image: git.danielvolz.org/daniel/medassist/backend:0.0.1
container_name: medassist-backend
env_file:
- .env
volumes:
- ./data:/app/data
ports:
- "4000:3000"
networks:
- medassist-net
# Security options
security_opt:
- no-new-privileges:true
@@ -28,8 +31,11 @@ services:
frontend:
image: git.danielvolz.org/daniel/medassist/frontend:0.0.1
container_name: medassist-frontend
ports:
- "4174:8080"
networks:
- medassist-net
depends_on:
backend:
condition: service_healthy
@@ -43,3 +49,7 @@ services:
- /var/run:noexec,nosuid,size=64m
cap_drop:
- ALL
networks:
medassist-net:
driver: bridge
+1 -1
View File
@@ -20,7 +20,7 @@ server {
}
location /api/ {
proxy_pass http://backend:3000/;
proxy_pass http://medassist-backend:3000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+250 -1569
View File
File diff suppressed because it is too large Load Diff
+50 -1891
View File
File diff suppressed because it is too large Load Diff