Просмотр исходного кода

Mount entire app directory in docker-compose

- Simplify volumes by mounting .:/app instead of individual files
- Allows live code updates without container rebuild
- Patterns, state, and config changes persist on host

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris 3 недель назад
Родитель
Сommit
a4adb101dd
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      docker-compose.yml

+ 2 - 3
docker-compose.yml

@@ -7,9 +7,8 @@ services:
       - "80:80"     # Frontend (nginx)
       - "8080:8080" # Backend API
     volumes:
-      # Persist state and patterns
-      - ./state.json:/app/state.json
-      - ./patterns:/app/patterns
+      # Mount entire app directory for development
+      - .:/app
       # Mount Docker socket for container self-restart/update
       - /var/run/docker.sock:/var/run/docker.sock
       # Mount timezone file from host for scheduling features