feat: update docker-compose and nginx configurations for improved service connectivity and security
This commit is contained in:
@@ -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
@@ -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
File diff suppressed because it is too large
Load Diff
+50
-1891
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user