Merge pull request #5 from jasonMPM/claude/isp-website-docker-EB8pB

Fix file bind-mount error by COPYing Apache config into image
This commit is contained in:
jasonMPM
2026-02-28 16:31:34 -06:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,8 @@ RUN apt-get update && apt-get install -y \
# Enable Apache modules
RUN a2enmod rewrite ssl headers deflate expires
# Copy PHP config
# Copy Apache vhost config and PHP config
COPY docker/apache/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY docker/php/php.ini /usr/local/etc/php/conf.d/custom.ini
# Set working directory

View File

@@ -131,9 +131,10 @@ docker build -t alwisp_web:latest .
| Container Path | Host Path | Access Mode |
|---|---|---|
| `/var/www/html` | `/mnt/user/appdata/alwisp/www` | Read/Write |
| `/etc/apache2/sites-available/000-default.conf` | `/mnt/user/appdata/alwisp/docker/apache/000-default.conf` | Read Only |
| `/etc/apache2/ssl` | `/mnt/user/appdata/alwisp/docker/apache/ssl` | Read Only |
> The Apache vhost config (`000-default.conf`) is baked directly into the image via `COPY` in the Dockerfile — no bind mount needed. To change it, edit the file in `docker/apache/` and rebuild the image.
5. Click **Apply**
---