2 hours ago · Tech · 0 comments

Publishing private composer packages is a fiddly business - especially if you want a usable UI along with it. After much research I came across Packeton [https://github.com/vtsykun/packeton] - an open source fork of Packagist which you can run on a web server of your choosing. This walkthrough sets Packeton up with Docker which requires the least amount of server setup. The following how-to runs through setting it up and some hurdles I came across. It expects CLI experience and you need to be comfortable with SSH. WHERE TO RUN You need a server or VPS for this - I opted for a cloud server from Hetzner [https://www.hetzner.com/] with Ubuntu 24 running. SERVER SET UP Update the server applications and install caddy (which allows web traffic to docker images) and docker itself. apt update && apt upgrade -y apt install -y caddy curl -fsSL https://get.docker.com | sh DNS Point your domain (e.g. packages.yourdomain.com) at the server's public IP FIREWALL Set up a firewall with the following…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.