Git Product home page Git Product logo

docker-kirby-server's Introduction

Docker Desktop Local Server Config for Kirby CMS

What’s this?

This is a ready-to-use Docker configuration that spawns a local development server with Apache and ImageMagick.

Multiple Kirby projects can live in the folders adjacent to this repo and will automatically be reachable as virtual hosts like this: http://foldername.localhost

How to install

You’ll need to get Docker Desktop first.

This Docker configuration assumes the following folder structure:

(parent folder, e.g. /Users/YourUserName/Web)
├── docker-kirby-server
│  └── (contents of this repo) ←←←
├── mykirbyproject
├── mykirbyotherproject
└── …

Open Docker Desktop, go to Settings → Resources → File Sharing and grant access to this repository’s parent folder, e.g. /Users/YourUserName/Web.

You can now access your Kirby projects in the browser by appending .localhost to the folder name, e.g. http://mykirbyproject.localhost and http://mykirbyotherproject.localhost

As a fallback, the standard http://localhost address shows the content of the _localhost folder in this repository.

The local virtual hosts should work with Firefox out of the box. For other browsers, you may have to append each virtual host to your /etc/hosts file like this:

127.0.0.1	mykirbyproject.localhost
127.0.0.1	myotherkirbyproject.localhost
…

How to run

Point your terminal to this repository and run docker-compose up.

Use at your own risk

If you’re running a virtual web server on your computer, you should know what you’re doing and what the security implications are. Also, please note that the server will be reachable on the local network by default.

License

MIT

docker-kirby-server's People

Contributors

frankrausch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.