Kopage CMS with PHP 8.5, Apache, ionCube, GD, SQLite, auto-install and persistent storage
10K+
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
linux/amd64 and linux/arm64/var/www/html/var/www/html has no Kopage files. An existing site is never overwritten.X-Forwarded-Forlatest: the only tag. It always contains the current Kopage installer and the latest security updates.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
http://<server-ip>:8080/install_izkopage-setup.phphttp://<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).
| Variable | Default | Meaning |
|---|---|---|
SERVER_NAME | empty | Apache ServerName, e.g. example.com |
PHP_SESSION_COOKIE_SECURE | 1 | 1 sends session cookies over HTTPS only. Set 0 when serving plain HTTP. |
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 ...
podman network create -d macvlan -o parent=eth0 --ipam-driver dhcp kopage-lan (needs netavark-dhcp-proxy.socket running).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
}
/var/www/html).index.php, into /path/to/kopage-data.index.php exists, the installer is not extracted, and the files are given to the web server user (www-data) on start.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.loginctl enable-linger $USERsystemctl --user enable --now podman-auto-update.timerdocker 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.
docker pull crypt010/kopage:latest