docker-compose.dev.yml 910 B

123456789101112131415161718192021222324252627282930313233343536
  1. services:
  2. backend:
  3. build:
  4. dockerfile: ./Dockerfile.dev
  5. ports:
  6. - "${BACKEND_HOST:-0.0.0.0}:${BACKEND_PORT:-8080}:8080"
  7. - "${BACKEND_HOST:-0.0.0.0}:${BACKEND_DEBUG_PORT:-9229}:9229"
  8. volumes:
  9. - ./.git:/opt/.git:ro
  10. - ./common:/opt/common
  11. - ./types:/opt/types
  12. - ./backend:/opt/app
  13. environment:
  14. - APP_ENV=${APP_ENV:-development}
  15. - BACKEND_DEBUG=${BACKEND_DEBUG:-false}
  16. frontend:
  17. build:
  18. dockerfile: ./Dockerfile.dev
  19. volumes:
  20. - ./.git:/opt/.git:ro
  21. - ./common:/opt/common
  22. - ./types:/opt/types
  23. - ./frontend:/opt/app
  24. environment:
  25. - APP_ENV=${APP_ENV:-development}
  26. mongo:
  27. ports:
  28. - "${MONGO_HOST:-0.0.0.0}:${MONGO_PORT:-27017}:${MONGO_PORT:-27017}"
  29. redis:
  30. ports:
  31. - "${REDIS_HOST:-0.0.0.0}:${REDIS_PORT:-6379}:6379"
  32. volumes:
  33. - ${REDIS_DATA_LOCATION:-./redis}:/data