asxpio: container removed; its monitor runs on services now
All checks were successful
nixos / nixos (push) Successful in 24s
All checks were successful
nixos / nixos (push) Successful in 24s
The asxpio and asxpio-monitor containers, their images and /opt/asxpio are gone from asxpio-ops, so the native monitor worker starts and the routes no longer have to outrank container labels. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
05ed9f5375
commit
1a3d283e63
3 changed files with 6 additions and 11 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
# The app stacks still in containers (asxpio, vhpbot) deploy themselves
|
# vhpbot, the last app stack in containers, deploys itself from its own
|
||||||
# from their own repositories: CI copies a compose file and a .env to
|
# repository: CI copies a compose file and a .env to /opt/<app> and runs
|
||||||
# /opt/<app> and runs `docker compose up -d` as user deploy. blog, czsk
|
# `docker compose up -d` as user deploy. blog, czsk, datacenterbingo and
|
||||||
# and datacenterbingo run on asxpio-services from their flakes (apps.nix
|
# asxpio run on asxpio-services from their flakes (apps.nix there).
|
||||||
# there).
|
|
||||||
#
|
#
|
||||||
# Their compose files still expect the Docker-era storage stack: a
|
# Their compose files still expect the Docker-era storage stack: a
|
||||||
# network named "storage" and the hosts "postgres" and "garage" on it.
|
# network named "storage" and the hosts "postgres" and "garage" on it.
|
||||||
|
|
|
||||||
|
|
@ -247,14 +247,12 @@ in
|
||||||
"www.asxp.io"
|
"www.asxp.io"
|
||||||
];
|
];
|
||||||
url = "http://10.10.0.20:3001";
|
url = "http://10.10.0.20:3001";
|
||||||
priority = 2000; # over the container's labels until it is removed
|
|
||||||
};
|
};
|
||||||
# Superuser logins only work here (SUPERUSER_HOST): WireGuard + VPC
|
# Superuser logins only work here (SUPERUSER_HOST): WireGuard + VPC
|
||||||
asxpio-admin = {
|
asxpio-admin = {
|
||||||
hosts = [ "admin.asxp.io" ];
|
hosts = [ "admin.asxp.io" ];
|
||||||
url = "http://10.10.0.20:3001";
|
url = "http://10.10.0.20:3001";
|
||||||
middlewares = [ "internal-only" ];
|
middlewares = [ "internal-only" ];
|
||||||
priority = 2000;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# The site, invoices and admin (asxp.io, admin.asxp.io), owner of the
|
# The site, invoices and admin (asxp.io, admin.asxp.io), owner of the
|
||||||
# asxpio database and the invoice and photo buckets on asxpio-ops. Its
|
# asxpio database and the invoice and photo buckets on asxpio-ops, and
|
||||||
# monitor worker starts when the container's stops: two would record
|
# the reachability worker for datacenterbingo's status page.
|
||||||
# every sample twice.
|
|
||||||
sops.secrets."asxpio/env".restartUnits = [
|
sops.secrets."asxpio/env".restartUnits = [
|
||||||
"asxpio.service"
|
"asxpio.service"
|
||||||
"asxpio-monitor.service"
|
"asxpio-monitor.service"
|
||||||
|
|
@ -35,7 +34,6 @@
|
||||||
services.asxpio = {
|
services.asxpio = {
|
||||||
enable = true; # :3001
|
enable = true; # :3001
|
||||||
environmentFile = config.sops.secrets."asxpio/env".path;
|
environmentFile = config.sops.secrets."asxpio/env".path;
|
||||||
monitor.enable = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
asxpio.security.ports = [
|
asxpio.security.ports = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue