tkr/docker/apache/vps/root/docker-compose.yml
Greg Sarjeant d3a537aa6c Fix first-time setup issues. (#68)
Fixes for issues found testing first time setup in the different configurations.

Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/68
Co-authored-by: Greg Sarjeant <greg@subcultureofone.org>
Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
2025-08-13 12:02:37 +00:00

21 lines
665 B
YAML

services:
php-apache:
image: php:8.2-apache
container_name: php-apache
ports:
- "80:80"
volumes:
- ./config:/var/www/tkr/config
- ./public:/var/www/tkr/public
- ./src:/var/www/tkr/src
- ./storage:/var/www/tkr/storage
- ./templates:/var/www/tkr/templates
- ./tkr-setup.php:/var/www/html/tkr/tkr-setup.php
- ./docker/apache/vps/root/tkr.my-domain.com.conf:/etc/apache2/sites-enabled/tkr.my-domain.com.conf
command: >
bash -c "a2enmod rewrite headers expires &&
apache2-foreground &&
chown -R www-data:www-data /var/www/tkr/storage"
restart: unless-stopped