Skip to content

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

License

Notifications You must be signed in to change notification settings

farynam/mfitbs-docker-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published