Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/farynam/mfitbs-docker-reverse-proxy

Reverse proxy for development purposes for example Wordpress etc. Substitutes docker www domain to localhost:port.
https://github.com/farynam/mfitbs-docker-reverse-proxy

docker docker-development docker-proxy docker-reverse-proxy httpd proxy reverse-proxy

Last synced: about 1 month ago
JSON representation

Reverse proxy for development purposes for example Wordpress etc. Substitutes docker www domain to localhost:port.

Awesome Lists containing this project

README

        

# Docker reverse proxy

Reverse proxy for development purposes for example to run Wordpress without db url change etc.
Substitutes docker www domain to chosen 'domain':'port'.

## Configuration

### Variables:

* TARGET_DOMAIN - domain to map from. ex. example.com
* SOURCE_DOMAIN - domain to map to example localhost
* SOURCE_DOMAIN_PORT - SOURCE_DOMAIN port to map to

## Example

proxy:
image: httpd_reverse_proxy:1.0.0
depends_on:
- wordpress
ports:
- "${LOCALHOST_PORT}:80"
restart: always
networks:
- examplenetwork
env_file: .env #docker env file with env variables (TARGET_DOMAIN, SOURCE_DOMAIN, SOURCE_DOMAIN_PORT)