Use bind mount for arch repo. Couldn't find another way past permission issues

This commit is contained in:
Marko Korhonen 2024-02-25 12:57:44 +02:00
parent 557eeb705d
commit 382bfad14c
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 3 additions and 4 deletions

View file

@ -3,7 +3,6 @@ data = {}
config = {}
wkd = {}
korhonen_cc = {}
index = {}
[volumes.nextcloud_config]
external = true
@ -20,8 +19,8 @@ volumes = [
"config:/config",
"wkd:/var/www/wkd",
"korhonen_cc:/var/www/korhonen.cc",
"index:/var/www/index.korhonen.cc",
"nextcloud_config:/var/www/nextcloud",
"/var/www/index.korhonen.cc:/var/www/index.korhonen.cc",
]
environment = ["CLOUDFLARE_EMAIL", "CLOUDFLARE_API_TOKEN", "ACME_AGREE=true"]

View file

@ -10,7 +10,7 @@ LocalFileSigLevel = Optional
CacheDir = /var/cache/pacman/pkg
{%@@ if profile == "Moria" @@%}
CleanMethod=KeepCurrent
CacheDir= /var/lib/docker/volumes/caddy_index/_data/repo/arch_linux/korhonen_aur/x86_64
CacheDir= /var/www/index.korhonen.cc/repo/arch_linux/korhonen_aur/x86_64
{%@@ endif @@%}
[core]
@ -27,7 +27,7 @@ Include = /etc/pacman.d/mirrorlist
[korhonen_aur]
{%@@ if profile == "Moria" @@%}
Server = file:///var/lib/docker/volumes/caddy_index/_data/repo/arch_linux/$repo/$arch
Server = file:///var/www/index.korhonen.cc/repo/arch_linux/$repo/$arch
{%@@ else @@%}
Include = /etc/pacman.d/pacserve
Server = https://index.korhonen.cc/repo/arch_linux/$repo/$arch