version: '2.3' services: ds: image: gsd_ds:test volumes: - /tmp/.X11-unix:/tmp/.X11-unix - /dev:/dev - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime - /opt/datas/video:/home/GSD/video - $PWD/source/gsd_ds/:/gsd_ds/ - /etc/gsd:/etc/gsd - /opt/datas/log:/home/GSD/log network_mode: "host" privileged: true tty: true environment: - NVIDIA_VISIBLE_DEVICES=all - DISPLAY:$DISPLAY ipc: "host" pid: "host" runtime: "nvidia" depends_on: - gsddb command: /bin/bash -c "sleep 5 && cp /gsd_ds/lib/* /usr/local/lib/ && cd /gsd_ds/ && ./start.sh" gsd: image: $dockerio/gsd_nv/gsd_gsd: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: - gsddb command: /bin/bash -c "sleep 5 && cd /gsd && ./start.sh" gsddb: image: mysql:latest 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: build: context: $PWD/ dockerfile: Dockerfile.nginx args: - DOCKERIP=$dockerio privileged: true ports: - "80:80" volumes: - /opt/datas/video:/home/GSD/video - /opt/datas/log:/home/GSD/log