registry.yml 936 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: "3.2"
  2. services:
  3. registry:
  4. image: registry:2.6.2
  5. environment:
  6. - REGISTRY_HTTP_TLS_CERTIFICATE=/run/secrets/sdsys_full
  7. - REGISTRY_HTTP_TLS_KEY=/run/secrets/sdsys_full
  8. deploy:
  9. replicas: 1
  10. labels:
  11. - com.df.notify=true
  12. - com.df.distribute=true
  13. - com.df.serviceDomain=registry.sdsys.ru
  14. - com.df.servicePath=/
  15. - com.df.port=5000
  16. - com.df.sslVerifyNone=true
  17. - com.df.httpsOnly=true
  18. - com.df.verifyClientSsl=true
  19. volumes:
  20. - lregistry:/var/lib/registry
  21. networks:
  22. - proxy
  23. secrets:
  24. - sdsys_full
  25. #volumes:
  26. # registry:
  27. # driver: rexray
  28. # driver_opts:
  29. # size: 100
  30. volumes:
  31. lregistry:
  32. driver: local
  33. driver_opts:
  34. device: "/dev/disk/by-label/registry"
  35. type: "xfs"
  36. secrets:
  37. sdsys_full:
  38. external: true
  39. networks:
  40. proxy:
  41. external: true