docker-compose.yml 567 B

12345678910111213141516171819202122232425262728
  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. - ./backend/uploads:/app/uploads
  12. environment:
  13. - NODE_ENV=production
  14. - JWT_SECRET=change_this_secret_in_production
  15. restart: unless-stopped
  16. frontend:
  17. build:
  18. context: ./frontend
  19. dockerfile: Dockerfile
  20. args:
  21. VITE_API_URL: http://localhost:3001
  22. ports:
  23. - "3000:80"
  24. depends_on:
  25. - backend
  26. restart: unless-stopped