compose.yml 892 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. # --- running ---
  20. container_name: sri-server-bg03
  21. # --- for debug ---
  22. # working_dir: /home/server/repositories/repositories/sri-project.demo-py/sri-server-bg03
  23. # stdin_open: true
  24. # tty: true
  25. # --- for release ---
  26. working_dir: /home/server/repositories/repositories/sri-project.demo-py/sri-server-bg03
  27. command: bash run.sh
  28. restart: always
  29. networks:
  30. sri_network:
  31. external: true