site-library/systems/README.md
2025-03-08 21:04:49 +01:00

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 ../dist for htdocs
  • Mounts ./etc for Apache configurations
  • Mounts ./ssl for Apache certificates (disabled by default)
  • Mounts ./var/log for 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-available in the container
  • ./ssl: Mounted to /etc/apache2/ssl in the container
  • ./var/log: Mounted to /var/log/apache2 in the container
  • ../dist: Mounted to /var/www/html in the container