docker-compose.yml 497 B

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