feat: add platform frontend deployment

This commit is contained in:
wlx committed 2026-08-07 13:06:10 +08:00
1 parent 7eb0e5186d
commit bd3d409836
12 files changed
+219 -6

No files matched your search

+20
View File
@@ -62,6 +62,26 @@ services:
networks:
- internal
frontend:
image: ${FRONTEND_IMAGE:?FRONTEND_IMAGE is required}
restart: unless-stopped
ports:
- "${FRONTEND_BIND_ADDRESS:?FRONTEND_BIND_ADDRESS is required}:${FRONTEND_HOST_PORT:-8080}:8080"
depends_on:
backend:
condition: service_healthy
mem_limit: ${FRONTEND_MEMORY_LIMIT:-1g}
cpus: ${FRONTEND_CPU_LIMIT:-1.0}
security_opt:
- no-new-privileges:true
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
networks:
- internal
volumes:
backend_uploads:
name: ${BACKEND_UPLOADS_VOLUME_NAME:-ai-soulmate-backend-uploads}