asxpio: container removed; its monitor runs on services now
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:
Sergei Poljanski 2026-11-17 14:16:20 +04:00
commit 1a3d283e63
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
3 changed files with 6 additions and 11 deletions

View file

@ -1,8 +1,7 @@
# The app stacks still in containers (asxpio, vhpbot) deploy themselves
# from their own repositories: CI copies a compose file and a .env to
# /opt/<app> and runs `docker compose up -d` as user deploy. blog, czsk
# and datacenterbingo run on asxpio-services from their flakes (apps.nix
# there).
# vhpbot, the last app stack in containers, deploys itself from its own
# repository: CI copies a compose file and a .env to /opt/<app> and runs
# `docker compose up -d` as user deploy. blog, czsk, datacenterbingo and
# asxpio run on asxpio-services from their flakes (apps.nix there).
#
# Their compose files still expect the Docker-era storage stack: a
# network named "storage" and the hosts "postgres" and "garage" on it.

View file

@ -247,14 +247,12 @@ in
"www.asxp.io"
];
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
asxpio-admin = {
hosts = [ "admin.asxp.io" ];
url = "http://10.10.0.20:3001";
middlewares = [ "internal-only" ];
priority = 2000;
};
};

View file

@ -25,9 +25,8 @@
};
# 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
# monitor worker starts when the container's stops: two would record
# every sample twice.
# asxpio database and the invoice and photo buckets on asxpio-ops, and
# the reachability worker for datacenterbingo's status page.
sops.secrets."asxpio/env".restartUnits = [
"asxpio.service"
"asxpio-monitor.service"
@ -35,7 +34,6 @@
services.asxpio = {
enable = true; # :3001
environmentFile = config.sops.secrets."asxpio/env".path;
monitor.enable = false;
};
asxpio.security.ports = [