mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-10-03 00:46:18 +00:00
nginx
This commit is contained in:
34
Nginx/docker-compose.yaml
Normal file
34
Nginx/docker-compose.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
certbot:
|
||||
image: certbot/dns-cloudflare
|
||||
volumes:
|
||||
- ./certs:/etc/letsencrypt
|
||||
- ./cloudflare.ini:/root/cloudflare.ini
|
||||
command: >-
|
||||
certonly --dns-cloudflare
|
||||
--dns-cloudflare-credentials /root/cloudflare.ini
|
||||
--dns-cloudflare-propagation-seconds 15
|
||||
--email your@email.com
|
||||
--agree-tos --no-eff-email
|
||||
-d *.jimsgarage.co.uk
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
restart: "always"
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "10"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./certs:/etc/letsencrypt
|
||||
networks:
|
||||
- nginx-proxy
|
||||
|
||||
networks:
|
||||
nginx-proxy:
|
||||
external: true
|
Reference in New Issue
Block a user