diff --git a/docker-compose.yml b/docker-compose.yml index e8b63bf..bed8531 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,41 +1,18 @@ version: '3.8' services: - cad-backend: - build: - context: ./backend - container_name: cad-backend - ports: - - "3001:3001" - volumes: - - cad-data:/data - environment: - - NODE_ENV=production - - 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 - cad-frontend: build: context: ./frontend - container_name: cad-frontend ports: - - "8080:8080" + - "8080:80" depends_on: - cad-backend - environment: - - API_URL=https://cad.media-on.de/api - - WS_URL=wss://cad.media-on.de/ws -volumes: - cad-data: \ No newline at end of file + cad-backend: + build: + context: ./backend + ports: + - "3001:3001" + environment: + - NODE_ENV=development \ No newline at end of file