docker-compose.yml 518 B

12345678910111213141516171819202122232425262728293031
  1. version: '2'
  2. services:
  3. backend:
  4. build: ./backend
  5. ports:
  6. - "8080:8080"
  7. volumes:
  8. - ./backend:/opt/app
  9. - ./log:/opt/log
  10. links:
  11. - mongo
  12. - redis
  13. environment:
  14. - NGINX_PORT=80
  15. frontend:
  16. build: ./frontend
  17. ports:
  18. - "80:80"
  19. volumes:
  20. - ./frontend:/opt/app
  21. mongo:
  22. image: mongo
  23. ports:
  24. - "27017:27017"
  25. mongoclient:
  26. image: mongoclient/mongoclient
  27. ports:
  28. - "3000:3000"
  29. redis:
  30. image: redis
  31. command: "--notify-keyspace-events Ex"