このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 2024.01.18 RailsでSSLエラー 以前のリビジョンを復元 (2024/01/18 07:06)
- 31 CentOS5 TLS1.2 created
- 2024.04.12 MySQL BIT Field created
最近の更新
文書の過去の版を表示しています。
certbot のdockerイメージ利用
Let's Encryptの証明書だけサッと利用したい場合にとても便利
※network_mode: hostで利用したい場合は、firewallも開ける
docker-compose.yml
--- version: "3" services: nginx: image: nginx restart: always volumes: - /etc/nginx/conf.d:/etc/nginx/conf.d - /etc/letsencrypt:/etc/letsencrypt - /var/www/html:/var/www/html ports: - 80:80 #network_mode: host certbot: image: certbot/certbot volumes: - /etc/letsencrypt:/etc/letsencrypt - /var/www/html:/var/www/html command: ["--version"]
docker-compose run --rm certbot certonly --webroot -w /var/www/html -d hogehoge.com