Skip to content
docker-compose lemp multi projets
Nginx PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
database
html
nginx
php
sessions
.gitignore
LICENSE
README.md
main.yml

README.md

Know your machine IP (only when using docker-machine)

$ docker-machine ip

add At least 2 hosts

in your hosts file /etc/hosts or C:/windows/System32/drivers/etc/hosts

add

127.0.0.1ORDOCKERMACHINEIP project1.dev
127.0.0.1ORDOCKERMACHINEIP project2.dev

Build and up

$ docker-compose -f main.yml up

or with -d to hide any message and let the containers run in background

$ docker-compose -f main.yml up -d

Where ?

Nginx is configured this way : Ask project1.dev and it will load html/project/ Ask bar.dev and it will load html/bar/

by default come with project1 and project2

to manage your databases add 8080 port to any project url ex: project1.dev:8080

TODO

add side config file to combine with the main one to add optionnal services/containers ex : node, elk, specific database such as mongodb or cassandra

You can’t perform that action at this time.