Docker builder & running script for Laradock.
- Change
.env.example
file to.env
for Docker environment configuration
- Change docker build & running environment in
docker-build.sh
file- ENV="0" # (0 = development, 1 = production)
- Setup for containers
- CONTAINER_PRODUCTION="consul portainer ..." # (see
docker-build.sh
for available containers) - CONTAINER_DEVELOPMENT="consul portainer" # (using only 2 containers)
- CONTAINER_PRODUCTION="consul portainer ..." # (see
- Setup cache containers
- REMOVE_CACHE="0" # (0 = using cache (default), 1 = no-cache)
- Setup recreate containers every running docker-compose
- RECREATE_CONTAINER="0" # (0 = disable recreate container, 1 = force recreate container)
- Setup running build containers or not.
- SKIP_BUILD="0" # (0 = with build process (default), 1 = bypass build process)
- Setup running background (daemon mode)
- DAEMON_MODE="0" # (0 = disable daemon mode, 1 = running daemon mode / background)
You can run the command / terminal using bash to run docker
make docker-run # or
./docker-build.sh
Remove container including volume & network
make docker-down