Add Docker configuration for PHP 8.4 Apache container
Enable Apache rewrite module and custom configuration Configure logging to container output streams Update compose file to use build context instead of direct image Remove redundant volume mount for apache.conf Remove unnecessary command override
This commit is contained in:
parent
7d12fe5654
commit
6cf9710ac1
2 changed files with 13 additions and 6 deletions
|
|
@ -1,16 +1,11 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
custom:
|
||||
# image: php:8.3.12-apache
|
||||
image: php:8.4.14-apache
|
||||
build: .
|
||||
container_name: stopplidelsen.no
|
||||
working_dir: /var/www/html/
|
||||
volumes:
|
||||
- ./app:/var/www/app:z
|
||||
- ./content:/var/www/html:z
|
||||
- ./custom:/var/www/custom:z
|
||||
- ./apache.conf:/etc/apache2/conf-available/custom.conf:z
|
||||
ports:
|
||||
- "4040:80"
|
||||
command: bash -c "a2enconf custom && a2enmod rewrite && apache2-foreground"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue