HUB
Sign inSign up

crypt010/kopage

By crypt010

•Updated 3 days ago

Kopage CMS with PHP 8.5, Apache, ionCube, GD, SQLite, auto-install and persistent storage

Image
Web servers
0

10K+

crypt010/kopage repository overview

⁠Dockerized Kopage CMS

Containerized Kopage CMS⁠ with PHP 8.5 + Apache, ionCube Loader, GD and SQLite. Runs on Docker or rootless Podman, with persistent storage and the Kopage installer set up for you on first start.

Source, build workflow and the exact contents of the current image: https://github.com/MansiVisuals/kopage-docker⁠


⁠Features

  • PHP 8.5 + Apache, for linux/amd64 and linux/arm64
  • ionCube Loader included (required by Kopage)
  • GD (JPEG, PNG, FreeType), Zip, cURL and PDO/SQLite: everything Kopage needs, no MySQL required
  • Persistent storage: mount /var/www/html
  • First start: the Kopage installer is extracted when /var/www/html has no Kopage files. An existing site is never overwritten.
  • Production PHP settings: 4 GB memory limit, 2 GB uploads, 600 s execution time, OPcache
  • Brotli/gzip compression and browser caching
  • Reverse-proxy ready: real visitor IPs from X-Forwarded-For
  • Rebuilt every Monday with the latest base image and Debian security updates

⁠Tags

  • latest: the only tag. It always contains the current Kopage installer and the latest security updates.

⁠Disclaimer

  • Not affiliated with Kopage
  • This image is community-maintained. Use at your own risk
  • Users are responsible for backups, updates, and security

⁠Quick start (Docker)

docker run -d --name kopage \
  -p 8080:80 \
  -e PHP_SESSION_COOKIE_SECURE=0 \
  -v /path/to/kopage-data:/var/www/html \
  --restart unless-stopped \
  crypt010/kopage:latest
  • First time: http://<server-ip>:8080/install_izkopage-setup.php
  • Afterwards: http://<server-ip>:8080/

PHP_SESSION_COOKIE_SECURE=0 is needed while you use plain HTTP, otherwise logging in will not work. Leave it out once the site is behind HTTPS (see Reverse proxy below).


⁠Environment variables

VariableDefaultMeaning
SERVER_NAMEemptyApache ServerName, e.g. example.com
PHP_SESSION_COOKIE_SECURE11 sends session cookies over HTTPS only. Set 0 when serving plain HTTP.

⁠Networking options

Port mapping (simplest)

-p 8080:80

Fixed IP on a user-defined bridge network

docker network create --subnet 172.30.0.0/24 kopage-net
docker run -d --name kopage --network kopage-net --ip 172.30.0.10 ...

Own address on your LAN (macvlan)

The container appears on your network like a separate device, reachable on port 80 at its own IP.

docker network create -d macvlan \
  --subnet 192.168.1.0/24 --gateway 192.168.1.1 \
  -o parent=eth0 kopage-lan
docker run -d --name kopage --network kopage-lan --ip 192.168.1.50 ...
  • Docker assigns macvlan addresses itself and does not use DHCP, so pick an address outside your router's DHCP range.
  • Rootful Podman can lease the address from your router instead: podman network create -d macvlan -o parent=eth0 --ipam-driver dhcp kopage-lan (needs netavark-dhcp-proxy.socket running).
  • With macvlan the host itself cannot reach the container directly. Other devices on the LAN can.

⁠Reverse proxy (HTTPS)

Keep the container on plain HTTP and let Caddy or Traefik handle TLS. Both send X-Forwarded-For, which the image trusts from private networks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), so Kopage and the Apache logs see real visitor IPs.

Behind HTTPS, leave PHP_SESSION_COOKIE_SECURE at its default (1) and set SERVER_NAME to your domain. Caddy example, with Caddy on the same Docker network as the container:

example.com {
    reverse_proxy kopage:80
}

⁠Moving an existing Kopage site in

  1. Back up your existing site folder (for example /var/www/html).
  2. Copy its contents, including index.php, into /path/to/kopage-data.
  3. Start the container. Because index.php exists, the installer is not extracted, and the files are given to the web server user (www-data) on start.

⁠Podman (rootless) with Quadlets

Save as ~/.config/containers/systemd/kopage.container:

[Unit]
Description=Kopage CMS
After=network-online.target
Wants=network-online.target

[Container]
Image=docker.io/crypt010/kopage:latest
ContainerName=kopage
PublishPort=8080:80
Environment=PHP_SESSION_COOKIE_SECURE=0
Volume=/path/to/kopage-data:/var/www/html:Z
AutoUpdate=registry

[Service]
Restart=always
TimeoutStartSec=900

[Install]
WantedBy=default.target

Load and start it:

systemctl --user daemon-reload
systemctl --user start kopage
  • :Z relabels the folder for SELinux (Fedora, RHEL). Leave it out on systems without SELinux.
  • To keep it running after you log out and start it at boot: loginctl enable-linger $USER
  • For automatic image updates: systemctl --user enable --now podman-auto-update.timer
  • Rootless Podman cannot bind ports below 1024 by default, which is why the example uses 8080.

⁠Updating

  • Kopage: update from Kopage's own admin panel. Your site files live in the volume.
  • The image (PHP, Apache, ionCube, security fixes): rebuilt every Monday. Pull it and recreate the container. Your volume is kept.
docker pull crypt010/kopage:latest
docker stop kopage && docker rm kopage
# then run the same docker run command as before

With Podman and AutoUpdate=registry, the auto-update timer does this for you.

Tag summary
Recent tags
Content type
Image
Digest
sha256:13a78767c…
Size
177.7 MB
Last updated
3 days ago
docker pull crypt010/kopage:latest