mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Create nginx.yaml
This commit is contained in:
parent
bc146926c0
commit
cbd86a5b05
31
docker/v1/compose/nginx.yaml
Normal file
31
docker/v1/compose/nginx.yaml
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user