Unacoli / paheko-docker

Paheko dockerized, with built-in Apache2 server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paheko dockerized, with built-in Apache2 server (formerly Garradin)

Installation

git clone https://github.com/alexandregv/paheko-docker
cd paheko-docker

Configuration

By default, no configuration is needed. You may open config.local.php and add any variable you need, following paheko docs.
To use a custom domain (like paheko.asso.fr), refer to Custom Domain.

Basic Usage

  1. docker-compose up -d
  2. docker-compose logs -f (Ctrl+c to quit logs)

paheko will be available at http://localhost:8080. You can change the port in docker-compose.yml.

Custom domain

To use a custom domain (like paheko.asso.fr), open config.local.php and set WWW_URL to your full URL, ending with a / (e.g https://paheko.asso.fr/).
You may need to restart the container if the permissions of the file changed.
Please note that you likely want to run this behind a reverse-proxy, like Nginx or Traefik. See the next section.

Reverse proxy (Nginx, Traefik, etc)

Running behind a reverse-proxy allows you to use TLS (HTTPS) and if you are hosting multiple websites you probably already have one.
You just have to point your proxy at this paheko instance (http://localhost:8080), with a "Proxy Pass" or similar.
Some examples are provided for Nginx and Traefik, in the proxy-examples/ folder.

Please note that when using your custom domain, even with a reverse-proxy, you MUST follow the instructions given in Custom Domain.

About

Paheko dockerized, with built-in Apache2 server.


Languages

Language:Dockerfile 81.8%Language:Shell 13.1%Language:PHP 5.2%