docker-compose.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. version: '2.3'
  2. services:
  3. ds:
  4. image: $dockerio/gsd_nv/gsd_ds: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/gsd_ds/:/gsd_ds/
  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. - NVIDIA_VISIBLE_DEVICES=all
  18. - DISPLAY:$DISPLAY
  19. ipc: "host"
  20. pid: "host"
  21. runtime: "nvidia"
  22. depends_on:
  23. - gsddb
  24. command: /bin/bash -c "sleep 5 && cp /gsd_ds/lib/* /usr/local/lib/ && cd /gsd_ds/ && ./start.sh"
  25. gsd:
  26. image: $dockerio/gsd_nv/gsd_gsd:latest
  27. network_mode: "host"
  28. privileged: true
  29. tty: true
  30. volumes:
  31. - /tmp/.X11-unix:/tmp/.X11-unix
  32. - /dev/:/dev
  33. - $PWD/source/gsd/:/gsd
  34. - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
  35. - /etc/gsd:/etc/gsd
  36. - /opt/datas/log:/home/GSD/log
  37. - /opt/datas/video:/home/GSD/video
  38. - /etc/docker/:/etc/docker/
  39. - /etc/profile.d/:/etc/profile.d/
  40. ipc: "host"
  41. pid: "host"
  42. depends_on:
  43. - gsddb
  44. command: /bin/bash -c "sleep 5 && cd /gsd && ./start.sh"
  45. gsddb:
  46. image: $dockerio/gsd_nv/gsd_db:latest
  47. environment:
  48. TZ: Asia/Shanghai
  49. MYSQL_ROOT_PASSWORD: 'sunwin2022'
  50. ports:
  51. - "3306:3306"
  52. volumes:
  53. - $PWD/source/gsd/db/:/docker-entrypoint-initdb.d
  54. - /var/lib/mysql:/var/lib/mysql
  55. nginx:
  56. build:
  57. context: $PWD/
  58. dockerfile: Dockerfile.nginx
  59. args:
  60. - DOCKERIP=$dockerio
  61. privileged: true
  62. ports:
  63. - "80:80"
  64. volumes:
  65. - /opt/datas/video:/home/GSD/video
  66. - /opt/datas/log:/home/GSD/log