docker-compose.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. version: '2'
  2. services:
  3. portal:
  4. build: # 构建镜像所需
  5. context: ../../../
  6. dockerfile: ./app/interface/video/Dockerfile
  7. extra_hosts:
  8. - "bvc-nerve.bilibili.co:172.18.21.10"
  9. - "api.bilibili.co:172.18.35.12"
  10. logging:
  11. driver: json-file
  12. options:
  13. max-size: 2m
  14. networks:
  15. - kratos
  16. volumes:
  17. - ../../../:/go/src/go-common/:rw
  18. ports:
  19. - 8000:8000
  20. links:
  21. - liveredis
  22. working_dir: /go/src/go-common/app/interface/video/portal/cmd
  23. command: go run main.go -appid=portal -conf=portal.toml
  24. stream-mng:
  25. build: # 构建镜像所需
  26. context: ../../../
  27. dockerfile: ./app/interface/video/Dockerfile
  28. extra_hosts:
  29. - "bvc-nerve.bilibili.co:172.18.21.10"
  30. - "api.bilibili.co:172.18.35.12"
  31. - "discovery.bilibili.co:172.18.35.12"
  32. logging:
  33. driver: json-file
  34. options:
  35. max-size: 2m
  36. networks:
  37. - kratos
  38. volumes:
  39. - ../../../:/go/src/go-common/:rw
  40. ports:
  41. - 8001:8000
  42. - 9000:9000
  43. environment:
  44. - TZ=Asia/Shanghai
  45. - DEPLOY_ENV=uat
  46. - HOSTNAME=zhoujiahui
  47. - APP_ID=video.live.stream-mng
  48. - zone=sh001
  49. links:
  50. - liveredis
  51. working_dir: /go/src/go-common/app/service/video/stream-mng/cmd
  52. command: go run main.go -appid=stream-mng -conf=stream-mng.toml
  53. liveredis:
  54. image: redis
  55. networks:
  56. - kratos
  57. networks:
  58. kratos:
  59. driver: bridge
  60. ipam:
  61. driver: default
  62. config:
  63. - subnet: 192.168.10.0/24
  64. gateway: 192.168.10.1