refactor: rename project to MedAssist-ng and update configurations
- Updated environment variables in .env.example for production setup. - Changed project references from MedAssist to MedAssist-ng in documentation and code. - Adjusted Docker configurations for new image names and ports. - Removed deprecated push-images.sh script and added docker-compose.dev.yml for development. - Updated translation files to reflect new project name. - Ensured all email notifications and headers reflect the new branding.
This commit is contained in:
+37
-28
@@ -1,46 +1,55 @@
|
||||
# =============================================================================
|
||||
# DEVELOPMENT DOCKER COMPOSE - Security Hardened
|
||||
# =============================================================================
|
||||
# Note: Dev containers need write access to volumes for hot-reload.
|
||||
# Production containers run as non-root with read-only filesystem.
|
||||
# PRODUCTION DOCKER COMPOSE - Security Hardened
|
||||
# =============================================================================
|
||||
|
||||
services:
|
||||
backend-dev:
|
||||
image: node:22-slim
|
||||
working_dir: /app
|
||||
command: sh -c "npm install && npm run dev"
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- backend_node_modules:/app/node_modules
|
||||
- ./backend/data:/app/data
|
||||
backend:
|
||||
image: git.danielvolz.org/daniel/medassist-ng/backend:0.0.1
|
||||
container_name: medassist-ng-backend
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "4000:3000"
|
||||
networks:
|
||||
- medassist-ng-net
|
||||
# Security options
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp:noexec,nosuid,size=64m
|
||||
cap_drop:
|
||||
- ALL
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""]
|
||||
test: ["CMD", "/nodejs/bin/node", "-e", "fetch('http://localhost:3000/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
start_period: 30s
|
||||
|
||||
frontend-dev:
|
||||
image: node:22-slim
|
||||
working_dir: /app
|
||||
command: sh -c "npm install && npm run dev -- --host --port 5173"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- frontend_node_modules:/app/node_modules
|
||||
frontend:
|
||||
image: git.danielvolz.org/daniel/medassist-ng/frontend:0.0.1
|
||||
container_name: medassist-ng-frontend
|
||||
ports:
|
||||
- "5173:5173"
|
||||
- "4174:8080"
|
||||
networks:
|
||||
- medassist-ng-net
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
# Security options
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
depends_on:
|
||||
- backend-dev
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp:noexec,nosuid,size=64m
|
||||
- /var/cache/nginx:noexec,nosuid,size=64m
|
||||
- /var/run:noexec,nosuid,size=64m
|
||||
cap_drop:
|
||||
- ALL
|
||||
|
||||
volumes:
|
||||
backend_node_modules:
|
||||
frontend_node_modules:
|
||||
networks:
|
||||
medassist-ng-net:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user