version: '3'
|
|
|
|
services:
|
|
webserver:
|
|
image: nginx:latest
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
restart: always
|
|
volumes:
|
|
- /mnt/cluster/miweb/conf:/etc/nginx/conf.d/:ro
|
|
- /mnt/cluster/miweb/www:/var/www/certbot/:ro
|
|
certbot:
|
|
image: certbot/certbot:latest
|
|
volumes:
|
|
- /mnt/cluster/miweb/certbot/www/:/var/www/certbot/:rw
|
|
- /mnt/cluster/miweb/certbot/conf/:/etc/letsencrypt/:rw
|