1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- version: '2'
- services:
- cnstream:
- image: $dockerio/gsd/gsd_cnstream:latest
- volumes:
- - /tmp/.X11-unix:/tmp/.X11-unix
- - /dev:/dev
- - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
- - /opt/datas/video:/home/GSD/video
- - $PWD/source/CNStream/:/CNStream/
- - /etc/gsd:/etc/gsd
- - /opt/datas/log:/home/GSD/log
- network_mode: "host"
- privileged: true
- tty: true
- environment:
- - DISPLAY:$DISPLAY
- ipc: "host"
- pid: "host"
- depends_on:
- - birdy
- command: /bin/bash -c "sleep 15 && cp /CNStream/lib/* /usr/local/lib/ && cd /CNStream/ && ./start_CNStream.sh"
- birdy:
- image: $dockerio/gsd/gsd_birdy:latest
- network_mode: "host"
- privileged: true
- tty: true
- volumes:
- - /tmp/.X11-unix:/tmp/.X11-unix
- - /dev/:/dev
- - $PWD/source/gsd/:/gsd
- - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
- - /etc/gsd:/etc/gsd
- - /opt/datas/log:/home/GSD/log
- - /opt/datas/video:/home/GSD/video
- - /etc/docker/:/etc/docker/
- - /etc/profile.d/:/etc/profile.d/
- ipc: "host"
- pid: "host"
- depends_on:
- - kafka1
- - gsddb
- command: /bin/bash -c "sleep 15 && cp /gsd/lib/* /usr/local/lib/ && cd /gsd && ./run.sh"
- gsddb:
- image: $dockerio/gsd/mysql:5.7
- environment:
- TZ: Asia/Shanghai
- MYSQL_ROOT_PASSWORD: 'sunwin2022'
- ports:
- - "3306:3306"
- volumes:
- - $PWD/source/gsd/db/:/docker-entrypoint-initdb.d
- - /var/lib/mysql:/var/lib/mysql
-
- nginx:
- image: $dockerio/gsd/gsd_nginx:latest
- privileged: true
- ports:
- - "80:80"
- volumes:
- - /opt/datas/video:/home/GSD/video
- - /opt/datas/log:/home/GSD/log
- zoo1:
- image: $dockerio/gsd/gsd_zookeeper:latest
- restart: unless-stopped
- hostname: zoo1
- ports:
- - "2181:2181"
- # container_name: zookeeper
-
- # kafka version: 1.1.0
- # scala version: 2.12
- kafka1:
- image: $dockerio/gsd/gsd_kafka:latest
- ports:
- - "9092:9092"
- environment:
- KAFKA_ADVERTISED_HOST_NAME: localhost
- KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
- KAFKA_BROKER_ID: 1
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
- KAFKA_CREATE_TOPICS: "stream-in:1:1,stream-out:1:1"
- depends_on:
- - zoo1
- # container_name: kafka
|