mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
Fix minor typo errors | Change Nginx for Caddy | Consolidate templates in this repo
This commit is contained in:
22
templates/nginx-certbot/docker-compose.yml
Normal file
22
templates/nginx-certbot/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./static:/var/www/static # For static content delivery
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d # Your sites conf files
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf # Main NginX config file
|
||||
- ./certbot/www:/var/www/certbot
|
||||
- ./certbot/conf:/etc/letsencrypt # Stores certificates
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- certbot
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
volumes:
|
||||
- ./certbot/www:/var/www/certbot
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user