Skip to content

Nginx reverse proxy to run on top of a Dockerized Laravel app

License

Notifications You must be signed in to change notification settings

Inflection-Points/nginx-react

 
 

Repository files navigation

Inflection-Points/nginx-react

Build Status Total Downloads Latest Version

nginx-react is a Nginx webserver for React applications that can be configured with a few environment variables.

Installation

Docker images can be pulled using the Docker CLI.

docker pull stephenneal/nginx-react:1.19-alpine-v1

Usage

Add a 'webserver' container for your PHP Laravel application.

webserver:
  image: Inflection-Points/nginx-react:1.19-alpine-v1
  container_name: webserver
  restart: unless-stopped
  tty: true
  volumes:
    - app:/var/www                               # map application volume
    - certs:/etc/letsencrypt                     # map certificates volume for sharing between webservers & certbot
  depends_on:
    - app
  networks:
    - app-network
  environment:
    - domain=test.localhost example.com          # declare domains that the webserver should listen on
    - service=app                                # PHP Laravel application container name
    - validation_domain=validation.example.com   # validation domain name
    - aws_s3=1                                   # enable AWS S3 certificate pulling
    - aws_s3_upload=0                            # enable uploading new certificates (set to 0 in dev environments)
    - aws_s3_download=1                          # enable downloading existing certificates
    - aws_s3_bucket=[SECRET]
    - aws_access_key_id=[SECRET]
    - aws_secret_access_key==[SECRET]
    - aws_region_name==[SECRET]

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email stephen.neal14@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Nginx reverse proxy to run on top of a Dockerized Laravel app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 87.0%
  • Dockerfile 13.0%