feat(elasticsearch): upgrade Elasticsearch version to 9.3.0 in environment and docker-compose files feat(gitlab): update GitLab version to 18.8.3-ce.0 in environment and docker-compose files feat(grafana): bump Grafana version to 12.3.2 in environment and docker-compose files feat(jenkins): upgrade Jenkins version to 2.541-lts-jdk17 in environment and docker-compose files fix(minio): remove unnecessary newline in docker-compose file feat(nginx): downgrade Nginx version to 1.28.2-alpine3.22 in environment and docker-compose files feat(ollama): update Ollama version to 0.14.3 in environment and docker-compose files feat(prometheus): upgrade Prometheus version to 3.5.1 in environment and docker-compose files feat(rabbitmq): update RabbitMQ version to 4.2.3-management-alpine in environment and docker-compose files
Nginx
This service deploys Nginx, a high-performance web server and reverse proxy server.
Services
nginx: The Nginx web server service.
Environment Variables
| Variable Name | Description | Default Value |
|---|---|---|
| NGINX_VERSION | Nginx image version | 1.29.1-alpine3.20 |
| NGINX_HTTP_PORT_OVERRIDE | Host port mapping for HTTP (maps to port 80) | 80 |
| NGINX_HTTPS_PORT_OVERRIDE | Host port mapping for HTTPS (maps to port 443) | 443 |
| NGINX_HOST | Server hostname for configuration | localhost |
| NGINX_PORT | Server port for configuration | 80 |
Please modify the .env file as needed for your use case.
Volumes
nginx_logs: A volume for storing Nginx logs../html: Directory for web content (mounted as read-only)../nginx.conf: Optional custom Nginx configuration file../conf.d: Optional directory for additional configuration files../ssl: Optional SSL certificates directory.
Usage
-
The
htmldirectory is already created with a defaultindex.htmlfile. -
Start the service:
docker compose up -d -
Access the web server at
http://localhost(or your configured port).
Configuration
- Custom Nginx configuration can be mounted at
/etc/nginx/nginx.conf - Additional server configurations can be placed in the
conf.ddirectory - SSL certificates can be mounted at
/etc/nginx/ssl/ - Web content should be placed in the
htmldirectory
Security Notes
- Consider using SSL/TLS certificates for production deployments
- Regularly update the Nginx version to get security patches
- Review and customize the Nginx configuration for your specific needs