- Host multiple subdomains in one VPS
- SSL enabled
- With docker container for repeatability
- a working domain with DNS configured
- copy docker-compose.app.yml to your desired app directory
cp ./docker-compose.app.yml /path/to/your/app/
- Set up .env in that directory
- run
docker-compose -f ./docker-compose.yml -f docker-compose.app.yml up -d
CONTAINER_APP_PORT= container's port number that
HOST_APP_PORT= whichever open port you have
APP_DOMAIN_NAME= target domain to host
EMAIL=email for letsencrypt notification