Docker
One image runs everything: the proxy, the API, the admin UI, PostgreSQL and Redis. State lives in one volume.
The image is ikoldakov/proxium on Docker Hub and ghcr.io/koldakov/proxium on GitHub, for amd64 and arm64.
latest is the last release, a version like 0.4.0 pins it, edge is the current main, not released yet.
Quickstart
Section titled “Quickstart”docker run -d --name proxium -p 80:80 -p 8080:8080 -v proxium:/var/lib/proxium \ ikoldakov/proxiumSUPERUSER_CREATE=true creates the first admin on start, the email and the password are required then. Later
starts skip it: changing SUPERUSER_PASSWORD doesn’t change the stored password.
Without it no admin is created, create one later in the running container:
docker exec -it proxium proxium-manage createsuperuserThe admin UI is at http://localhost, the proxy at localhost:8080. Superuser variables: SUPERUSER_CREATE,
SUPERUSER_EMAIL, SUPERUSER_PASSWORD, SUPERUSER_NAME, SUPERUSER_SURNAME, see
Configuration for these and the rest.
To serve the admin UI on a domain over HTTPS, see HTTPS for the admin UI.
Ports and IPs
Section titled “Ports and IPs”PROXY_LISTEN is what the proxy listens on inside the container, -p publishes it. Container ports must match.
EXPOSE in the image lists only the defaults, any port works with -p:
docker run -d --name proxium -p 80:80 -p 8090-8092:8090-8092 -e PROXY_LISTEN=0.0.0.0:8090-8092 \ -v proxium:/var/lib/proxium ikoldakov/proxiumSeveral IPs require the host network: in a bridge network the container doesn’t see the host’s IPs. -p isn’t used
then, PROXY_LISTEN takes the host’s addresses as is:
docker run -d --name proxium --network host -e PROXY_LISTEN=10.0.0.0/29:10000-10999 \ -v proxium:/var/lib/proxium ikoldakov/proxium-p | --network host | |
|---|---|---|
| Ports and port ranges | yes | yes |
| Several listening IPs | no, the proxy sees one | yes, Linux only |
| Outgoing IPs | no, one host IP | yes, Linux only |
Own database, Redis and secrets
Section titled “Own database, Redis and secrets”| Want | Add |
|---|---|
| Own PostgreSQL | -e DATABASE_URL=postgres://user:[email protected]:5432/proxium |
| Own Redis | -e REDIS_URL=redis://redis.example.com:6379/0 -e REDIS_PASSWORD=... |
| Own keys | -e ENCRYPTION_KEY=... -e API_SECRET_KEY=..., else generated once and kept in the volume |
Every variable from Configuration works with -e, Docker-only ones are under
Docker. Both must be of the supported versions.
Give docker stop time for open connections: --stop-timeout 50. Leave about 20 seconds over
PROXY_GRACEFUL_TIMEOUT: closing connections release their places in Redis, up to the two Redis timeouts, and the
proxy reports its stop to the admin.
Commands
Section titled “Commands”Management commands run in the container with proxium-manage:
docker exec -it proxium proxium-manage createsuperuser