deploy.test.yml 585 B

123456789101112131415161718192021222324252627282930
  1. version: '3.7'
  2. services:
  3. hyperf:
  4. image: $REGISTRY_URL/$PROJECT_NAME:test
  5. environment:
  6. - "APP_PROJECT=hyperf"
  7. - "APP_ENV=testing"
  8. ports:
  9. - "9501:9501"
  10. deploy:
  11. replicas: 1
  12. restart_policy:
  13. condition: on-failure
  14. delay: 5s
  15. max_attempts: 5
  16. update_config:
  17. parallelism: 2
  18. delay: 5s
  19. order: start-first
  20. networks:
  21. - hyperf_net
  22. configs:
  23. - source: hyperf_v1.0
  24. target: /opt/www/.env
  25. configs:
  26. hyperf_v1.0:
  27. external: true
  28. networks:
  29. hyperf_net:
  30. external: true