docker-compose.yml 600 B

123456789101112131415161718192021222324252627282930313233
  1. version: '2'
  2. services:
  3. backend:
  4. build: ./backend
  5. ports:
  6. - "${BACKEND_PORT}:8080"
  7. volumes:
  8. - ./backend:/opt/app
  9. links:
  10. - mongo
  11. - redis
  12. frontend:
  13. build: ./frontend
  14. ports:
  15. - "${FRONTEND_PORT}:80"
  16. volumes:
  17. - ./frontend:/opt/app
  18. mongo:
  19. image: mongo
  20. ports:
  21. - "27018:27018"
  22. command: "--auth"
  23. mongoclient:
  24. image: mongoclient/mongoclient
  25. ports:
  26. - "3000:3000"
  27. redis:
  28. image: redis
  29. command: "--notify-keyspace-events Ex --requirepass ${REDIS_PASSWORD}"
  30. volumes:
  31. - .redis:/data
  32. ports:
  33. - "6371:6371"