https://github.com/bertrandmartel/httpd-proxy
Docker image for an httpd proxy with external configuration
https://github.com/bertrandmartel/httpd-proxy
docker-image httpd
Last synced: 10 days ago
JSON representation
Docker image for an httpd proxy with external configuration
- Host: GitHub
- URL: https://github.com/bertrandmartel/httpd-proxy
- Owner: bertrandmartel
- Created: 2016-11-08T13:23:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-25T23:44:01.000Z (over 9 years ago)
- Last Synced: 2025-01-03T20:12:25.738Z (over 1 year ago)
- Topics: docker-image, httpd
- Language: ApacheConf
- Homepage: https://hub.docker.com/r/bertrandmartel/httpd-proxy
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Httpd proxy minimal docker image
[](https://travis-ci.org/bertrandmartel/httpd-proxy) [](https://microbadger.com/images/bertrandmartel/httpd-proxy) [](https://microbadger.com/images/bertrandmartel/httpd-proxy)
A minimal httpd docker image to be run with an already existing configuration
## Build image
```
docker build -t httpd-proxy .
```
## Usage
* edit default configuration : `000-default.conf` :
```
ServerName www.example.com
SSLEngine on
SSLCertificateFile "/usr/local/apache2/conf/key/fullchain.pem"
SSLCertificateKeyFile "/usr/local/apache2/conf/key/privkey.pem"
SSLProxyEngine On
RequestHeader set Front-End-Https "On"
ProxyPass / https://www.google.com/
ProxyPassReverse / https://www.google.com/
```
* place your server certificate/key in a `key` folder
* start httpd proxy :
```
docker run -dit --name httpd-proxy -p 443:443 \
-v "$PWD/apache2.conf":/usr/local/apache2/conf/httpd.conf \
-v "$PWD/000-default.conf":/etc/apache2/sites-enabled/000-default.conf \
-v "$PWD/key":/usr/local/apache2/conf/key apache-php
```
## Docker-compose
```
docker-compose up
```
## Docker-cloud
```
export USER_PATH=/home/bobby
```
* revise your `stackfile.yml` file before creating/updating the stack :
```
# create the stack :
docker-cloud stack create --name httpd-proxy -f stackfile.yml
# or update :
docker-cloud stack update -f stackfile.yml httpd-proxy
```
* start/deploy :
```
# start the stack :
docker-cloud stack start httpd-proxy
# or redeploy :
docker-cloud stack redeploy httpd-proxy
```
## Debug
```
docker exec -it httpd-proxy bash
```