From ca8c98f45d7d8ed63492abc64e3538d4b125ec87 Mon Sep 17 00:00:00 2001 From: mg Date: Thu, 15 Jun 2023 12:31:17 +0200 Subject: [PATCH] oci-registry: remove bind-mount (#536) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/536 --- docker-compose/registry/docker-compose.yml.j2 | 7 ++++++- host_vars/docker10.grote.lan.yml | 11 ----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/docker-compose/registry/docker-compose.yml.j2 b/docker-compose/registry/docker-compose.yml.j2 index 26b99fb0..c25eb12a 100644 --- a/docker-compose/registry/docker-compose.yml.j2 +++ b/docker-compose/registry/docker-compose.yml.j2 @@ -5,7 +5,7 @@ services: container_name: oci-registry image: registry:2 volumes: - - /mnt/oci-registry:/var/lib/registry + - oci:/var/lib/registry - ./htpasswd:/auth/htpasswd networks: - traefik @@ -93,3 +93,8 @@ networks: traefik: external: true intern: + + +######## Volumes ######## +volumes: + oci: diff --git a/host_vars/docker10.grote.lan.yml b/host_vars/docker10.grote.lan.yml index 82794c9c..b5bea4ed 100644 --- a/host_vars/docker10.grote.lan.yml +++ b/host_vars/docker10.grote.lan.yml @@ -12,17 +12,6 @@ filesystem: xfs mount: true mntp: /var/lib/docker - - vgname: vg_docker_volumes - disks: - - /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi2 - create: true - lvnames: - - lvname: ociregistry - size: 10G - create: true - filesystem: xfs - mount: true - mntp: /mnt/oci-registry manage_lvm: true pvresize_to_max: true ### mgrote.restic