Add a configuration with apache and php, but no sqlite. Confirm that the setup error page displays on first load. Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/70 Co-authored-by: Greg Sarjeant <greg@subcultureofone.org> Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
23 lines
895 B
YAML
23 lines
895 B
YAML
services:
|
|
apache-php-no-sqlite:
|
|
image: debian:bookworm
|
|
container_name: apache-no-sqlite-test
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./config:/var/www/html/tkr/config
|
|
- ./public:/var/www/html/tkr/public
|
|
- ./src:/var/www/html/tkr/src
|
|
- ./storage:/var/www/html/tkr/storage
|
|
- ./templates:/var/www/html/tkr/templates
|
|
- ./tkr-setup.php:/var/www/html/tkr/tkr-setup.php
|
|
- ./docker/apache/shared-hosting/.htaccess:/var/www/html/tkr/.htaccess
|
|
command: >
|
|
bash -c "apt-get update &&
|
|
apt-get install -y apache2 php libapache2-mod-php &&
|
|
a2enmod rewrite headers expires php8.2 &&
|
|
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf &&
|
|
chown -R www-data:www-data /var/www/html/tkr/storage &&
|
|
apache2ctl -D FOREGROUND"
|
|
restart: unless-stopped
|