Create nginx.yaml

This commit is contained in:
Stefan Pejcic 2025-02-22 11:10:04 +01:00 committed by GitHub
parent bc146926c0
commit cbd86a5b05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,31 @@
services:
nginx:
image: nginx:latest
container_name: nginx
restart: always
user: "${UID:-0}"
ports:
- "${HTTP_PORT}"
- "${HTTPS_PORT}"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- webserver_data:/etc/${path}/sites-enabled/
- html_data:/var/www/html/ # Website files
deploy:
resources:
limits:
cpus: "${NGINX_CPU:-0.5}"
memory: "${NGINX_RAM:-0.5G}"
networks:
- default
networks:
default:
driver: bridge
volumes:
html_data:
driver: local
webserver_data:
driver: local