Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frankrausch/docker-kirby-server
https://github.com/frankrausch/docker-kirby-server
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/frankrausch/docker-kirby-server
- Owner: frankrausch
- License: mit
- Created: 2021-11-02T19:42:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-16T15:30:33.000Z (about 2 years ago)
- Last Synced: 2023-10-28T11:28:51.480Z (about 1 year ago)
- Language: Dockerfile
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://www.docker.com/products/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