问题原文
原帖链接 · Felix D. · CC BY-SA 4.0
This is my docker-compose.yml:
version: '3.7'
services:
minio:
image: minio/minio
command: server -C /etc/minio --address ":9000" --console-address ":9001" /data
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio:/data
- /etc/minio:/root/.minio/
- /etc/minio:/etc/minio/
volumes:
minio:
ls -l /etc/minio/:
drwx------ 2 root root 4096 May 20 11:43 CAs
lrwxrwxrwx 1 root root 59 May 20 11:45 private.key -> /etc/letsencrypt/live/mydomain.com/privkey.pem
lrwxrwxrwx 1 root root 61 May 20 11:44 public.crt -> /etc/letsencrypt/live/mydomain.com/fullchain.pem
accessing via http works but https does not. I have no clue, what is wrong. Sadly the logs don't show anything and the docs are also not helping.
已采纳解答
原帖链接 · Gerald Schneider · CC BY-SA 4.0
The symlinks private.key and public.crt can't be resolved because the targets don't exist inside the container.
The easiest way would be to mount /etc/letsencrypt inside the container as well.
Keep in mind that you need to restart the container (or at least reload the minio process inside the container) after every certificate renewal.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
