This repository contains all my docker
, docker-machine, docker-compose related settings and configuration files
If you do not like too much chit-chat and talk to hand (like me 😛) just jump to Start Containers section
If you are not using docker-machine you can skip this section
To create machine run the command below
$docker-machine create --driver virtualbox --virtualbox-cpu-count 2 --virtualbox-memory "4096" --virtualbox-disk-size "10000" devbox
$eval $(docker env devbox)
$docker-machine ip devbox
You may need to mount the host directory into the docker as follows
#from host
$docker-machine ssh devbox
#In Docker Machine (workzone path in host is /media/devzone/workzone)
$sudo mkdir /nmrony && sudo mount -t vboxsf workzone /nmrony
All configurations are depends on custom vpn network ronsvpn
. Create the VPN as
follows
docker network create -d bridge ronsvpn
If you do not want that just remove net
key in docker compose file
Copy and paste the following line in your ~/.bashrc
or ~/.zshrc
depending your shell.
Then replace absolute-path-to-configuration-directory
with yours
export DEV_ZONE='absolute-path-to-configuration-directory'
source $HOME/.zshrc # replace with `.bashrc` if your shell is bash
Then create these following commands to create necessary directories for configuration from the root of this cloned directory
mkdir -p ${DEV_ZONE}/storage/mysql
mkdir -p ${DEV_ZONE}/projects
mkdir -p ${DEV_ZONE}/settings
cp -r ./nginx ${DEV_ZONE}/settings
After setting the configuration path and VPN just run the following command to start only LEMP containers with proxy
docker-compose -f docker-compose.lemp.yml up -d
If you want to run all containers execute following command
docker-compose up -d