Runs all docker images for side projects. To setup a new VPS:
ssh user@vps_ip_addresscd /path/to/projectgit clone https://github.com/tr3mulant/vps-proxy-multi-sitecd vps-proxy-multi-site./install.sh- Installs required packages for a
Ubuntu 22.xVPS instance from a provider like DigitalOcean:ca-certificatescurldocker-cedocker-ce-clicontainerd.iodocker-buildx-plugindocker-compose-plugin
- Pulls the images as defined in
docker-compose.yml.- This requires a
.envfile with some variables set in order to login to a docker registry of choice with associated credentials.DOCKER_USERDOCKER_PASSDOCKER_REGISTRY
- Note: the script assumes all images needed in
docker-compose.ymlare located in the registry pointed to by theDOCKER_REGISTRYenv 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_REGISTRYin the.envfile - 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
mainbranch
./reload.sh- Reloads the Caddy reverse proxy