- Add the following lines to your
.bashrcfile:
export UID
export GID=$(id -g)- Create Docker pre-existing network:
docker network create nghed-networkFind out more here about pre-existing networks.
-
Copy
.env.distto.envfile and fill your local config -
Run containers:
There two ways to run these components:
- by docker-compose (prod)
docker-compose -f docker-compose.yml up - by docker-sync (dev with code synchronization)
docker-sync-stack start
Tip Some containers map ports to a host port somewhere within an ephemeral port range in order to prevent the port collisions with already open ports, use command docker port to get the list port mappings. Find out more here about port bindings.
Enjoy!