Fix: Bind dynamic config file via absolute path, bind directory such that it can be used as intended. Also restore all stack files to stack directory.

This commit is contained in:
Joey Hafner 2025-02-08 00:30:02 -08:00
parent ce1c51b8d4
commit dc179fc9c7
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55
2 changed files with 5 additions and 3 deletions

View File

@ -12,6 +12,7 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yaml:/traefik.yaml
- ./config/config.yaml:/config/config.yaml
- ./config:/config
- $APPDATA/acme.json:/acme.json
- $APPDATA/acme-dns01.json:/acme-dns01.json

View File

@ -5,10 +5,11 @@
text = ''APPDATA=${sys.dataDirs.appdata}/${stack}'';
target = "stacks/${stack}/.env";
};
"${stack}/config/config.yaml" = {
"${stack}" = {
enable = true;
source = ./config/config.yaml;
target = "stacks/${stack}/config/config.yaml";
recursive = true;
source = ./.;
target = "stacks/${stack}/";
};
};
sops.secrets."${stack}" = {