compose.yml 888 B

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