generated from polymech/site-template
44 lines
1.1 KiB
Markdown
44 lines
1.1 KiB
Markdown
# 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:
|
|
|
|
```bash
|
|
docker compose up --build
|
|
```
|
|
|
|
To stop the container:
|
|
|
|
```bash
|
|
docker compose down
|
|
```
|
|
|
|
To rebuild the container:
|
|
|
|
```bash
|
|
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
|