Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stopka/docker-apaxy
Docker image with a configurable Apaxy installation
https://github.com/stopka/docker-apaxy
Last synced: 13 days ago
JSON representation
Docker image with a configurable Apaxy installation
- Host: GitHub
- URL: https://github.com/stopka/docker-apaxy
- Owner: Stopka
- Created: 2018-03-05T22:07:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T13:33:10.000Z (over 9 years ago)
- Last Synced: 2024-12-20T08:00:34.704Z (15 days ago)
- Language: Shell
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-apaxy
A simple configurable container to generate an Apache docker container with [Apaxy](http://adamwhitcroft.com/apaxy/). Thanks to Adam Whitcroft for creating, maintaining, and sharing the [Apaxy project](https://github.com/AdamWhitcroft/Apaxy).
## Examples
### Quick Start
Run the following:
```bash
docker run -d \
--name apaxy \
-v /your/file/share/directory:/data \
-p 80:80 \
xetusoss/apaxy
```Add files to `/your/file/share/directory/webroot` on your Docker host to see them populate in the Apaxy-style Apache file index running in the new container.
### Apaxy Configuration
To override the default header, footer, and css provided out-of-the-box with Apaxy:
```bash
docker run -d \
--name apaxy \
-v /your/file/share/directory:/data \
-p 80:80 \
-e APAXY_HEADER=/data/header-override.html \
-e APAXY_FOOTER=/data/footer-override.html \
-e APAXY_CSS=/data/style-override.css \
xetusoss/apaxy
```## Details
The container exposes a data volume at `/data`. The following directories are added by default once the container starts up if they don't already exist:
```bash
# The document root for the Apache server. If the
# APAXY_CONTEXT_PATH option is specified, the path
# will be generated as a subdirectory to this webroot
# folder if it does not already exist.
/data/webroot# The location of the Apaxy error log
/data/log# The directory out of which the Apaxy theme files are served.
# Note that this will not be generated if it exists when the container
# is started
/data/apaxy_theme
```## Configuration
The following environment variable configurations are available:
* __APAXY_CONTEXT_PATH__: The context path from which the Apaxy file index should be configured. Defaults to no context path (the Apaxy file index is configured at the root ('/') endpoint).
* __APAXY_HEADER__: The path to a custom Apaxy header.html file with which to override Apaxy's default header. Please see the Apaxy source for the header's requirements.
* __APAXY_FOOTER__: The path to a custom Apaxy footer.html file with which to override Apaxy's default footer. Please see the Apaxy source for the footer's requirements.
* __APAXY_CSS__: The path to a CSS file that should be used instead of the default Apaxy CSS file.## Credits
Thanks agian to Adam Whitcroft for creating, maintaining, and sharing the [Apaxy project](https://github.com/AdamWhitcroft/Apaxy).