folderweb/devel/compose.yaml

27 lines
902 B
YAML

version: '3.8'
services:
# custom:
# image: php:8.3.12-apache
# container_name: folderweb-custom
# working_dir: /var/www/html/
# volumes:
# - ../app:/var/www/app:z
# - ../content:/var/www/html:z
# - ../custom:/var/www/custom:z
# - ../docs:/var/www/html/docs:z
# - ./apache/custom.conf:/etc/apache2/conf-available/custom.conf:z
# ports:
# - "4040:80"
# command: bash -c "a2enconf custom && a2enmod rewrite && apache2-foreground"
default:
image: php:8.4.14-apache
container_name: folderweb-default
working_dir: /var/www/html/
volumes:
- ../app:/var/www/app:z
- ./apache/custom.conf:/etc/apache2/conf-available/custom.conf:z
- ./apache/default.conf:/etc/apache2/sites-available/000-default.conf:z
ports:
- "8080:80"
command: bash -c "a2enconf custom && a2enmod rewrite && apache2-foreground"