- Run
docker compose up -don the VPS - Git clone the site repository (containing the docker-compose.yml) wherever you like on the VPS
- Run
docker compose up -dfrom each site repository directory
- Make new repo with docker-compose.yml
- Change PHP version if needed
- Change SSH credentials
- Add new domain to nginx config + ssh stream config
- Restart Nginx with
docker compose restart nginx(probably need to find a better way without restarting it completely because everything goes down if you do) - Create SQL credentials (can probably be automated using a similar script as
init.sql) - Git clone the site repository wherever you like on the VPS
- Run
docker compose up -din the site directory
- ssh root@domain
SSH credentials can also be changed in the project specific docker-compose.yml