Skip to content

A docker compose configuration for web development using nginx-proxy and self signed proxy companion.

License

Notifications You must be signed in to change notification settings

dptsi/nginx-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-proxy

A docker compose configuration for web development using nginx-proxy and self signed proxy companion.

Usage

  1. Create a docker network named nginx-proxy-network.
docker network create --driver bridge nginx-proxy-network
  1. Run the service inside nginx-proxy directory.
docker compose up -d
  1. Add ca.crt to your browser so that your upcoming web apps will be trusted.

  2. Run your web server container by adding environment variables VIRTUAL_HOST, VIRTUAL_PORT, and SELF_SIGNED_HOST. This is an example using laravel-web-dev docker image.

docker run -d \
--name your.domain.com \
-v /path/to/your/web/project:/var/www/html \
-e VIRTUAL_HOST=your.domain.com \
-e VIRTUAL_PORT=8080 \
-e SELF_SIGNED_HOST=your.domain.com \
dptsi/laravel-web-dev
  1. Your CA certificate and self-signed SSL certificate will be generated under certs directory.

License

MIT

About

A docker compose configuration for web development using nginx-proxy and self signed proxy companion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published