compose.yml 919 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. version: '3.5'
  2. services:
  3. sri-server-bg03:
  4. # --- building ---
  5. image: sri-server-bg03:2024
  6. build:
  7. context: ./
  8. dockerfile: ./Dockerfile
  9. environment:
  10. TZ: Asia/Shanghai
  11. # --- binding ---
  12. volumes:
  13. - /home:/home
  14. # networks:
  15. # - sri_network
  16. # ports:
  17. # - "20916:20916"
  18. # - "20917:20917"
  19. network_mode: host
  20. # --- running ---
  21. container_name: sri-server-bg03
  22. # --- for debug ---
  23. # working_dir: /home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03
  24. # stdin_open: true
  25. # tty: true
  26. # --- for release ---
  27. working_dir: /home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03
  28. command: bash run.sh
  29. restart: always
  30. #networks:
  31. # sri_network:
  32. # external: true