File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22- hosts : infra-nodes
33 name : " Deploy Docker Registry"
44 remote_user : ubuntu
5- gather_facts : yes
5+ gather_facts : no
66 become : yes
77 vars :
88 working_dir_name : " registry"
99 registry_host : " registry.databuddy.cc"
10- registry_data_dir : " /tmp/data/ registry"
10+ registry_data_dir : " /tmp/registry/data "
1111
1212 tasks :
1313
Original file line number Diff line number Diff line change @@ -6,13 +6,17 @@ services:
66 expose :
77 - 5000
88 environment :
9- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY : /tmp/ data
9+ REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY : /data
1010 REGISTRY_AUTH : htpasswd
1111 REGISTRY_AUTH_HTPASSWD_REALM : Registry
1212 REGISTRY_AUTH_HTPASSWD_PATH : /run/secrets/registry_password_file
1313 REGISTRY_STORAGE_DELETE_ENABLED : 1
14+ OTEL_TRACES_EXPORTER : none
15+ REGISTRY_LOG_LEVEL : info
1416 secrets :
1517 - registry_password_file
18+ volumes :
19+ - " {{registry_data_dir}}:/data"
1620 restart : always
1721 networks :
1822 - databuddy_ingress
@@ -40,12 +44,6 @@ services:
4044 - " traefik.http.routers.registry.entrypoints=websecure"
4145 - " traefik.http.services.registry.loadbalancer.server.port=5000"
4246 - " traefik.docker.network=databuddy_ingress"
43- healthcheck :
44- test : wget --no-verbose --tries=1 --spider http://localhost:5000 || exit 1
45- interval : 120s
46- timeout : 60s
47- start_period : 180s
48- retries : 20
4947
5048networks :
5149 databuddy_ingress :
You can’t perform that action at this time.
0 commit comments