docker-compose.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. version: '2'
  2. services:
  3. cnstream:
  4. image: $dockerio/gsd/gsd_cnstream:latest
  5. volumes:
  6. - /tmp/.X11-unix:/tmp/.X11-unix
  7. - /dev:/dev
  8. - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
  9. - /opt/datas/video:/home/GSD/video
  10. - $PWD/source/CNStream/:/CNStream/
  11. - /etc/gsd:/etc/gsd
  12. - /opt/datas/log:/home/GSD/log
  13. network_mode: "host"
  14. privileged: true
  15. tty: true
  16. environment:
  17. - DISPLAY:$DISPLAY
  18. ipc: "host"
  19. pid: "host"
  20. depends_on:
  21. - birdy
  22. command: /bin/bash -c "cp /CNStream/lib/* /usr/local/lib/ && cd /CNStream/ && ./start_CNStream.sh"
  23. birdy:
  24. image: $dockerio/gsd/gsd_birdy:latest
  25. network_mode: "host"
  26. privileged: true
  27. tty: true
  28. volumes:
  29. - /tmp/.X11-unix:/tmp/.X11-unix
  30. - /dev/:/dev
  31. - $PWD/source/gsd/:/gsd
  32. - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
  33. - /etc/gsd:/etc/gsd
  34. - /opt/datas/log:/home/GSD/log
  35. - /opt/datas/video:/home/GSD/video
  36. - /etc/docker/:/etc/docker/
  37. - /etc/profile.d/:/etc/profile.d/
  38. environment:
  39. - LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
  40. ipc: "host"
  41. pid: "host"
  42. depends_on:
  43. - kafka1
  44. - gsddb
  45. command: /bin/bash -c "cp /gsd/lib/* /usr/local/lib/ && cd /gsd && ./run.sh"
  46. gsddb:
  47. image: $dockerio/gsd/mysql:5.7
  48. environment:
  49. TZ: Asia/Shanghai
  50. MYSQL_ROOT_PASSWORD: 'sunwin2022'
  51. ports:
  52. - "3306:3306"
  53. volumes:
  54. - $PWD/source/gsd/db/:/docker-entrypoint-initdb.d
  55. - /var/lib/mysql:/var/lib/mysql
  56. nginx:
  57. image: $dockerio/gsd/gsd_nginx:latest
  58. privileged: true
  59. ports:
  60. - "80:80"
  61. volumes:
  62. - /opt/datas/video:/home/GSD/video
  63. - /opt/datas/log:/home/GSD/log
  64. zoo1:
  65. image: $dockerio/gsd/gsd_zookeeper:latest
  66. restart: unless-stopped
  67. hostname: zoo1
  68. ports:
  69. - "2181:2181"
  70. # container_name: zookeeper
  71. # kafka version: 1.1.0
  72. # scala version: 2.12
  73. kafka1:
  74. image: $dockerio/gsd/gsd_kafka:latest
  75. ports:
  76. - "9092:9092"
  77. environment:
  78. KAFKA_ADVERTISED_HOST_NAME: localhost
  79. KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
  80. KAFKA_BROKER_ID: 1
  81. KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
  82. KAFKA_CREATE_TOPICS: "stream-in:1:1,stream-out:1:1"
  83. depends_on:
  84. - zoo1
  85. # container_name: kafka