docker-compose.yml 528 B

123456789101112131415161718192021222324252627
  1. version: '3.8'
  2. services:
  3. backend:
  4. build:
  5. context: ./backend
  6. dockerfile: Dockerfile
  7. ports:
  8. - "3001:3001"
  9. volumes:
  10. - ./backend/data:/app/data
  11. environment:
  12. - NODE_ENV=production
  13. - JWT_SECRET=change_this_secret_in_production
  14. restart: unless-stopped
  15. frontend:
  16. build:
  17. context: ./frontend
  18. dockerfile: Dockerfile
  19. args:
  20. VITE_API_URL: http://localhost:3001
  21. ports:
  22. - "3000:80"
  23. depends_on:
  24. - backend
  25. restart: unless-stopped