docker-compose.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 "sleep 15 && 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. ipc: "host"
  39. pid: "host"
  40. depends_on:
  41. - kafka1
  42. - gsddb
  43. command: /bin/bash -c "sleep 15 && cp /gsd/lib/* /usr/local/lib/ && cd /gsd && ./run.sh"
  44. gsddb:
  45. image: $dockerio/gsd/mysql:5.7
  46. environment:
  47. TZ: Asia/Shanghai
  48. MYSQL_ROOT_PASSWORD: 'sunwin2022'
  49. ports:
  50. - "3306:3306"
  51. volumes:
  52. - $PWD/source/gsd/db/:/docker-entrypoint-initdb.d
  53. - /var/lib/mysql:/var/lib/mysql
  54. nginx:
  55. image: $dockerio/gsd/gsd_nginx:latest
  56. privileged: true
  57. ports:
  58. - "80:80"
  59. volumes:
  60. - /opt/datas/video:/home/GSD/video
  61. - /opt/datas/log:/home/GSD/log
  62. zoo1:
  63. image: $dockerio/gsd/gsd_zookeeper:latest
  64. restart: unless-stopped
  65. hostname: zoo1
  66. ports:
  67. - "2181:2181"
  68. # container_name: zookeeper
  69. # kafka version: 1.1.0
  70. # scala version: 2.12
  71. kafka1:
  72. image: $dockerio/gsd/gsd_kafka:latest
  73. ports:
  74. - "9092:9092"
  75. environment:
  76. KAFKA_ADVERTISED_HOST_NAME: localhost
  77. KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
  78. KAFKA_BROKER_ID: 1
  79. KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
  80. KAFKA_CREATE_TOPICS: "stream-in:1:1,stream-out:1:1"
  81. depends_on:
  82. - zoo1
  83. # container_name: kafka