Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/farynam/mfitbs-docker-reverse-proxy
- Owner: farynam
- License: mit
- Created: 2019-11-20T18:10:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-22T20:58:17.000Z (almost 5 years ago)
- Last Synced: 2024-07-05T22:12:31.611Z (6 months ago)
- Topics: docker, docker-development, docker-proxy, docker-reverse-proxy, httpd, proxy, reverse-proxy
- Language: Shell
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)