generated from polymech/site-template
1.1 KiB
1.1 KiB
Apache Docker Configuration
Overview
This container sets up an Apache web server with the following features:
- Apache web server with minimal configuration
- Mounts
../distfor htdocs - Mounts
./etcfor Apache configurations - Mounts
./sslfor Apache certificates (disabled by default) - Mounts
./var/logfor Apache logs - Includes Midnight Commander and OpenSSH server
- Configured with
AllowOverride "All" - Configured with
Require all granted(Allow from all) - Directory indexing, redirect, and proxy enabled
Usage
To start the container:
docker compose up --build
To stop the container:
docker compose down
To rebuild the container:
docker compose build --no-cache
Structure
./config: Contains Apache configuration files copied into the container during build./etc: Mounted to/etc/apache2/sites-availablein the container./ssl: Mounted to/etc/apache2/sslin the container./var/log: Mounted to/var/log/apache2in the container../dist: Mounted to/var/www/htmlin the container