1
0
Fork 0

proxitok: Switch to oci-containers config

This commit is contained in:
Daniel Kempkens 2023-03-19 00:28:41 +01:00
parent 111469ab5f
commit eb9404d83c
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -1,37 +1,27 @@
{ config, ... }: { config, ... }:
{ {
virtualisation.arion.projects.proxitok.settings = { virtualisation.oci-containers.containers = {
services = {
proxitok-web = { proxitok-web = {
service = {
image = "ghcr.io/pablouser1/proxitok:master"; image = "ghcr.io/pablouser1/proxitok:master";
container_name = "proxitok-web"; dependsOn = [ "proxitok-signer" ];
restart = "unless-stopped";
depends_on = [ "proxitok-signer" ];
ports = [ "127.0.0.1:8005:80" ]; ports = [ "127.0.0.1:8005:80" ];
env_file = [ config.age.secrets.proxitok-environment.path ]; environmentFiles = [ config.age.secrets.proxitok-environment.path ];
volumes = [ volumes = [
"/etc/container-proxitok/cache:/cache" "/etc/container-proxitok/cache:/cache"
]; ];
labels = { extraOptions = [
"com.centurylinklabs.watchtower.enable" = "true"; "--label=com.centurylinklabs.watchtower.enable=true"
"io.containers.autoupdate" = "registry"; "--label=io.containers.autoupdate=registry"
}; ];
};
}; };
proxitok-signer = { proxitok-signer = {
service = {
image = "ghcr.io/pablouser1/signtok:master"; image = "ghcr.io/pablouser1/signtok:master";
container_name = "proxitok-signer"; extraOptions = [
restart = "unless-stopped"; "--label=com.centurylinklabs.watchtower.enable=true"
labels = { "--label=io.containers.autoupdate=registry"
"com.centurylinklabs.watchtower.enable" = "true"; ];
"io.containers.autoupdate" = "registry";
};
};
};
}; };
}; };