docker-compose.yml 625 B

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