How to clone the stack into new environments

Clone and fetch all submodules

Use git clone --recurse-submodules -j8 <repo-url> command.

Or if want to clone and update to latest, use git clone --recurse-submodules --remote-submodules <repo-url> command.

Or if already clone the stack project without submodule, use git submodule update --init --recursive in the stack directory to fetch all submodules.

Pre-installed

docker

And docker compose

docker network

Depends on in the docker-compose-xxx.yml of all submodule repositories. Need to be same name for easily setting. Due to docker-compose-nginx needs to communicate to each component through local network ip.

firewall

Set to allow at least http and https port for docker-compose-nginx. And also allow other port for pm2 if still use public ip in the nginx con.f files. See gathered commands in each DEPLOYMENT OVERVIEW.

Last updated