remove duplicate config, add certbot-compose.yaml

This commit is contained in:
Alex Holliday
2024-12-02 12:42:53 +08:00
parent d713038788
commit ecd0ddcd34

View File

@@ -0,0 +1,19 @@
version: '3'
services:
webserver:
image: nginx:latest
ports:
- 80:80
- 443:443
restart: always
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/:ro
- ./certbot/www/:/var/www/certbot/:ro
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
depends_on:
- webserver