Create compose.yaml

This commit is contained in:
David Rotermund 2024-07-12 15:24:57 +02:00 committed by GitHub
parent b4cb926857
commit 57e41c5965
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
ubuntu/nginx/compose.yaml Normal file
View file

@ -0,0 +1,16 @@
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