Skip to content

Commit c11f9f3

Browse files
committed
add docker support
XAMPP is too hard to change the PHP version number.
1 parent 44f83ab commit c11f9f3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3.8'
2+
services:
3+
php:
4+
image: php:8.4-apache
5+
ports:
6+
- "8082:80" # https://localhost:8082
7+
volumes:
8+
- .:/var/www/html
9+
- ./docker/apache/dir-listing.conf:/etc/apache2/conf-available/dir-listing.conf:ro # needed to turn on viewing directory listings. else it 403s. `:ro` means "read only"
10+
command: bash -lc "a2enmod autoindex && a2enconf dir-listing && apache2-foreground"

docker/apache/dir-listing.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Directory /var/www/html>
2+
Options Indexes FollowSymLinks
3+
AllowOverride None
4+
Require all granted
5+
</Directory>

0 commit comments

Comments
 (0)