Runs all docker images for side projects. To setup a new VPS:
ssh user@vps_ip_address
cd /path/to/project
git clone https://github.com/tr3mulant/vps-proxy-multi-site
cd vps-proxy-multi-site
./install.sh
- Installs required packages for a
Ubuntu 22.x
VPS instance from a provider like DigitalOcean:ca-certificates
curl
docker-ce
docker-ce-cli
containerd.io
docker-buildx-plugin
docker-compose-plugin
- Pulls the images as defined in
docker-compose.yml
.- This requires a
.env
file with some variables set in order to login to a docker registry of choice with associated credentials.DOCKER_USER
DOCKER_PASS
DOCKER_REGISTRY
- Note: the script assumes all images needed in
docker-compose.yml
are located in the registry pointed to by theDOCKER_REGISTRY
env variable.
- This requires a
- Once the images are pulled, docker compose builds the containers and starts them
- Installs required packages for a
To add a new side project:
- Build project as a standalone image in the same registry pointed to by
DOCKER_REGISTRY
in the.env
file - Add new docker compose definition to
docker-compose.yml
- Commit and push to github repository
ssh user@vps_ip_address
./update.sh
- Install repository if it does not exist
- Pull latest changes from
main
branch
./reload.sh
- Reloads the Caddy reverse proxy