我目前在用的 docker 方案:traefik + Bitwardenrs,相关的脚本如下:
这个是创建 traefik 的
```
docker volume create traefik-letsencrypt
docker volume create traefik-tmp
# Just change your e-mail address in the command below:
docker run -d --restart unless-stopped --log-opt max-size=10m \
-v traefik-letsencrypt:/etc/traefik/acme \
-v traefik-tmp:/tmp \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
--net freshrss-network \
-p 80:80 \
-p 443:443 \
--name traefik traefik:1.7 --docker \
--loglevel=info \
--entryPoints='Name:http Address::80 Compress:true Redirect.EntryPoint:https' \
--entryPoints='Name:https Address::443 Compress:true TLS TLS.MinVersion:VersionTLS12 TLS.SniStrict:true TLS.CipherSuites:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA' \
--defaultentrypoints=http,https --keeptrailingslash=true \
--acme=true --acme.entrypoint=https --acme.onhostrule=true --acme.tlsChallenge \
--acme.storage=/etc/traefik/acme/acme.json
[email protected]```
这个是创建 Bitwardenrs 的
```bash
sudo docker run -d --restart unless-stopped --log-opt max-size=10m \
-v bw-data:/data \
--net freshrss-network \
--label traefik.port=你想要暴露的端口 \
--label traefik.frontend.rule='Host:你的域名' \
--label traefik.frontend.headers.forceSTSHeader=true \
--label traefik.frontend.headers.STSSeconds=31536000 \
-e SIGNUPS_ALLOWED=false \
-e ADMIN_TOKEN=xxxxxxx \
-e SHOW_PASSWORD_HINT=false \
-e SMTP_HOST=
smtp.qq.com \
-e
[email protected] \
-e SMTP_PORT=587 \
-e SMTP_SSL=true \
-e
[email protected] \
-e SMTP_PASSWORD=xxxxxxx\
-e DOMAIN=https://你的域名 \
--name bitwardenrs bitwardenrs/server:latest \
```
希望有帮助