Skip to content

dockerframework/laradock-build

Repository files navigation

Laradock Build

Docker builder & running script for Laradock.

Build Status GitHub issues GitHub forks GitHub stars GitHub license

Configuration Environment

  • Change .env.example file to .env for Docker environment configuration

Setup Docker Builder Script

  • 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)
  • 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)

Running Laradock Builder

You can run the command / terminal using bash to run docker

make docker-run       # or
./docker-build.sh

Remove Container

Remove container including volume & network

make docker-down