Skip to content

Commit 173b660

Browse files
committed
slight fixes
1 parent 659e8c8 commit 173b660

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

infrastructure/registry/deploy-registry.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
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

infrastructure/registry/docker-compose.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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

5048
networks:
5149
databuddy_ingress:

0 commit comments

Comments
 (0)