Files
nginx-common-configuration/docker-compose.yml
Filipp Frizzy 6285b6601c add Dockerfile and docker stuff
time spent: 3.15h
2021-10-28 17:44:15 +03:00

32 lines
803 B
YAML

version: '3'
services:
nginx:
image: nginx
volumes:
# you can copy this configs into /etc/nginx and mount whole dir
- nginx.conf:/etc/nginx/nginx.conf
- conf.d:/etc/nginx/conf.d
- snippets:/etc/nginx/snippets
- templates:/etc/nginx/templates
#- /etc/nginx:/etc/nginx
#- /etc/letsencrypt:/etc/letsencrypt
- /etc/ssl:/etc/ssl
#- /var/log/nginx:/var/log/nginx
- /var/www:/var/www
ports:
- 80:80
- 443:443
command: nginx -g 'daemon off; master_process on;'
ulimits:
nproc: 65535
nofile:
soft: 100000
hard: 100000
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"