Create compose.yaml
This commit is contained in:
parent
4d07074d8a
commit
1b1abb548d
1 changed files with 17 additions and 0 deletions
17
nginx/compose.yaml
Normal file
17
nginx/compose.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
services:
|
||||
nginx:
|
||||
image: nginx:stable-alpine
|
||||
container_name: nginx
|
||||
restart: always
|
||||
volumes:
|
||||
- "/root/nginx/key.pem:/certs/nginx_key.pem:ro"
|
||||
- "/root/nginx/ca.pem:/certs/nginx_certificate.pem:ro"
|
||||
- "/root/nginx/nginx.conf:/etc/nginx/nginx.conf:ro"
|
||||
ports:
|
||||
- "0.0.0.0:443:443"
|
||||
- "0.0.0.0:80:80"
|
||||
environment:
|
||||
NGINX_WORKER_PROCESSES: "4"
|
||||
NGINX_WORKER_CONNECTIONS: "768"
|
||||
network_mode: bridge
|
||||
|
Loading…
Reference in a new issue