Initial commit

Add nginx and certbot configurations
This commit is contained in:
2023-10-09 09:48:30 +03:00
commit 7af75ad55d
17 changed files with 468 additions and 0 deletions

30
run_once.d-c.yml Normal file
View File

@@ -0,0 +1,30 @@
version: '3.4'
services:
certbot:
container_name: "certbot_get_certificates"
build:
context: ./certbot
args:
EMAIL: ${EMAIL}
volumes:
- ssl:/ssl
- letsencrypt:/etc/letsencrypt
command: ["/run_once"]
depends_on:
- nginx
nginx:
container_name: "nginx-get-certificates"
build:
context: ./nginx
dockerfile: get-certificates.Dockerfile
volumes:
- ssl:/ssl
- letsencrypt:/etc/letsencrypt
ports:
- 80:80
volumes:
ssl:
letsencrypt: