proxitok: Switch to oci-containers config
This commit is contained in:
parent
111469ab5f
commit
eb9404d83c
1 changed files with 20 additions and 30 deletions
|
@ -1,37 +1,27 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
virtualisation.arion.projects.proxitok.settings = {
|
virtualisation.oci-containers.containers = {
|
||||||
services = {
|
proxitok-web = {
|
||||||
proxitok-web = {
|
image = "ghcr.io/pablouser1/proxitok:master";
|
||||||
service = {
|
dependsOn = [ "proxitok-signer" ];
|
||||||
image = "ghcr.io/pablouser1/proxitok:master";
|
ports = [ "127.0.0.1:8005:80" ];
|
||||||
container_name = "proxitok-web";
|
environmentFiles = [ config.age.secrets.proxitok-environment.path ];
|
||||||
restart = "unless-stopped";
|
volumes = [
|
||||||
depends_on = [ "proxitok-signer" ];
|
"/etc/container-proxitok/cache:/cache"
|
||||||
ports = [ "127.0.0.1:8005:80" ];
|
];
|
||||||
env_file = [ config.age.secrets.proxitok-environment.path ];
|
extraOptions = [
|
||||||
volumes = [
|
"--label=com.centurylinklabs.watchtower.enable=true"
|
||||||
"/etc/container-proxitok/cache:/cache"
|
"--label=io.containers.autoupdate=registry"
|
||||||
];
|
];
|
||||||
labels = {
|
};
|
||||||
"com.centurylinklabs.watchtower.enable" = "true";
|
|
||||||
"io.containers.autoupdate" = "registry";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
proxitok-signer = {
|
proxitok-signer = {
|
||||||
service = {
|
image = "ghcr.io/pablouser1/signtok:master";
|
||||||
image = "ghcr.io/pablouser1/signtok:master";
|
extraOptions = [
|
||||||
container_name = "proxitok-signer";
|
"--label=com.centurylinklabs.watchtower.enable=true"
|
||||||
restart = "unless-stopped";
|
"--label=io.containers.autoupdate=registry"
|
||||||
labels = {
|
];
|
||||||
"com.centurylinklabs.watchtower.enable" = "true";
|
|
||||||
"io.containers.autoupdate" = "registry";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue