docker-compose.yml 541 B

123456789101112131415161718
  1. version: "3.8"
  2. services:
  3. app:
  4. build: .
  5. ports:
  6. - "3000:3000" # Web app
  7. - "3001:3001" # Service app
  8. volumes:
  9. - .:/app
  10. - /app/node_modules
  11. - ./data:/app/data # Persist database files
  12. environment:
  13. - NODE_ENV=development
  14. # CLI is now the default entrypoint, can be overridden with command
  15. # command: pnpm dev # Uncomment to run dev servers instead of CLI
  16. stdin_open: true # Keep stdin open for interactive CLI
  17. tty: true # Allocate a pseudo-TTY for interactive CLI