Are you tired of your relatives asking you to print something for them? Well, now they can do it themselves! Even if they are not on your local network.
git clone https://github.com/Akronae/self-hosted-printing-server
cd self-hosted-printing-server
touch docker-compose.yaml
# docker-compose.yaml
services:
api:
build:
context: api
ports:
- "3001:3001"
environment:
DATABASE_URL: "file:./dev.db"
JWT_SECRET: "secret"
ADMIN_USER: "admin"
ADMIN_PWD: "pass"
PRINTER_URL: "http://x.x.x.x:631"
front:
build:
context: front
args:
PUBLIC_API_URL: "http://x.x.x.x:3001"
ports:
- "3000:3000"
The API receives and convert files to JPEG format and sends the data to your printer through IPP.
Therefore your printer should have IPP enabled and accept inbound connections.