docker-compose.yml 911 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. version: "2.0"
  2. services:
  3. base:
  4. image: fd3-base
  5. build:
  6. context: ./base
  7. ports:
  8. - "8000:8000"
  9. links:
  10. - mysql:db
  11. environment:
  12. VIRTUAL_HOST: base.fd3.flowdat.com
  13. ftth:
  14. image: fd3-ftth
  15. build:
  16. context: ./ftth
  17. links:
  18. - mysql:db
  19. - base:base
  20. - amqp:amqp
  21. ports:
  22. - "8001:8000"
  23. environment:
  24. VIRTUAL_HOST: ftth.fd3.flowdat.com
  25. volumes:
  26. - ./ftth/:/opt/ftth/
  27. mysql:
  28. ports:
  29. - 3306:3306/tcp
  30. environment:
  31. MYSQL_ROOT_PASSWORD: 235r2342gtfsw
  32. volumes:
  33. - ./mysql/:/var/lib/mysql/
  34. labels:
  35. io.rancher.service.hash: ff5c1be5e84f2419adf14e165573a7c76c6d58fb
  36. image: mysql:latest
  37. amqp:
  38. image: rabbitmq
  39. nginx-proxy:
  40. image: jwilder/nginx-proxy
  41. container_name: nginx-proxy
  42. ports:
  43. - "80:80"
  44. volumes:
  45. - /var/run/docker.sock:/tmp/docker.sock:ro