-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docker-compose setup #263
Conversation
Please add docker usage information to README as well. |
added readme section. I omitted the configuration readme block, as I intended to make it automatic: But this needs to be tested first, I will not push to this branch until tested, so this could be still merged. |
ok, tested the mongodb indexes init. so adding commits to this branch.
|
|
||
2. Startup the containers: `docker-compose up -d` | ||
|
||
3. Open your browser at http://xhgui.127.0.0.1.xip.io:8142 or just http://localhost:8142 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is xip.io
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wildcard DNS for everyone
What is xip.io?
xip.io is a magic domain name that provides wildcard DNS
for any IP address. Say your LAN IP address is 10.0.0.1.
Using xip.io,
10.0.0.1.xip.io resolves to 10.0.0.1
www.10.0.0.1.xip.io resolves to 10.0.0.1
mysite.10.0.0.1.xip.io resolves to 10.0.0.1
foo.bar.10.0.0.1.xip.io resolves to 10.0.0.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat! thanks for sharing.
thanks! :) |
This is my attempt on #231.
Uses docker layered builds to optimize caching, the resulting image will be smallest, but layers caching is efficinent.
besides that, uses official docker PHP alpine image:
php:7.3-fpm-alpine
and same for mongo image. I've used percona variant but can switch to MongoDB if needed.The customizations, for now, just edit your local
docker-compose.yml
or createdocker-compose.override.yml
with overrides. But could be extended with.env
overrides in separate PR if there's interest.