From 249236bb7a9ec69ba5a917d7ca7bca7c4e58769c Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Sun, 21 Jun 2026 20:34:00 +0000 Subject: [PATCH] T01: update docker-compose.yml --- docker-compose.yml | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2795fd3..e8b63bf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,24 +1,41 @@ version: '3.8' services: - backend: - build: ./backend + cad-backend: + build: + context: ./backend + container_name: cad-backend ports: - - "5000:5000" + - "3001:3001" + volumes: + - cad-data:/data environment: - NODE_ENV=production - - JWT_SECRET=your-secret-key-change-me - volumes: - - sqlite_data:/app/data + - PORT=3001 + - JWT_SECRET=${JWT_SECRET} + - AI_API_URL=${AI_API_URL} + - AI_API_KEY=${AI_API_KEY} + - AI_MODEL=${AI_MODEL} + - DATABASE_PATH=/data/db/cad.sqlite + - YJS_PERSISTENCE_PATH=/data/yjs + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3001/health"] + interval: 30s + timeout: 10s + retries: 3 restart: unless-stopped - frontend: - build: ./frontend + cad-frontend: + build: + context: ./frontend + container_name: cad-frontend ports: - - "80:80" + - "8080:8080" depends_on: - - backend - restart: unless-stopped + - cad-backend + environment: + - API_URL=https://cad.media-on.de/api + - WS_URL=wss://cad.media-on.de/ws volumes: - sqlite_data: + cad-data: \ No newline at end of file