Added a new recipe: wondercms_php8.
This commit is contained in:
46
.recipes/wondercms_php8/docker-compose.yml
Normal file
46
.recipes/wondercms_php8/docker-compose.yml
Normal file
@ -0,0 +1,46 @@
|
||||
# WonderCMS Flat File application with official Apache 2.4.x and PHP 8.x.
|
||||
#
|
||||
# This recipe doesn't extend the official image, it keeps all necessary
|
||||
# modifications in the container. The application itself must be added
|
||||
# with a persistent volume.
|
||||
#
|
||||
# Based on https://github.com/robiso/docker-wondercms/
|
||||
#
|
||||
services:
|
||||
# https://github.com/WonderCMS/wondercms
|
||||
# https://github.com/robiso/docker-wondercms/
|
||||
# https://hub.docker.com/_/php
|
||||
wondercms:
|
||||
image: php:8-apache
|
||||
restart: unless-stopped
|
||||
# Take a look the possible public port collision.
|
||||
ports:
|
||||
- 8201:80
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
# Needs R/W for UID 33 (www-data).
|
||||
- ./storage/volumes/wonder_html/:/var/www/html/
|
||||
environment:
|
||||
TZ: Europe/Budapest
|
||||
# We don't want to extend the official image to maintain
|
||||
# watchtower's monitoring for updates. So we use CMD to
|
||||
# make all the necessary changes. Unfortunately this will
|
||||
# slightly prolong the start of the service.
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- |
|
||||
DEBIAN_FRONTEND=noninteractive apt update
|
||||
apt install -y libzip-dev zip
|
||||
apt clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
docker-php-ext-configure zip
|
||||
docker-php-ext-install zip
|
||||
a2enmod rewrite
|
||||
cp -p /usr/local/etc/php/php.ini-production /usr/local/etc/php/conf.d/php.ini
|
||||
apache2-foreground
|
||||
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: true
|
Reference in New Issue
Block a user