compose.yml 866 B

12345678910111213141516171819202122232425262728293031323334353637
  1. version: '3.5'
  2. services:
  3. sri-module-hs01:
  4. # --- building ---
  5. image: sri-module-hs01: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. - "9000:9000"
  18. # --- running ---
  19. container_name: sri-module-hs01
  20. # --- for debug ---
  21. # working_dir: /home/ubuntu/repositories/repositories/casperz.py-project/project-fastapi-hs
  22. # stdin_open: true
  23. # tty: true
  24. # --- for release ---
  25. working_dir: /home/ubuntu/repositories/repositories/casperz.py-project/project-fastapi-hs
  26. command: bash run.sh
  27. restart: always
  28. networks:
  29. sri_network:
  30. external: true