nginx-laravel is a Nginx webserver for PHP Laravel applications that can be configured with a few environment variables.
Docker images can be pulled using the Docker CLI.
docker pull stephenneal/nginx-laravel:1.19-alpine-v1
Add a 'webserver' container for your PHP Laravel application.
webserver:
image: stephenneal/nginx-laravel: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]
Please see CONTRIBUTING for details.
If you discover any security related issues, please email stephen.neal14@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.