-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose_bitwarden-caddy.yml
69 lines (66 loc) · 1.91 KB
/
docker-compose_bitwarden-caddy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#---
#Docker-compose file for Vaultwarden proxied by caddy 2.0
#---
version: "3"
services:
vaultwarden:
restart: always
# Dani Garcia image https://github.com/dani-garcia/bitwarden_rs
image: "vaultwarden/server:latest"
container_name: vaultwarden
environment:
# Timezone settings, important for Fail2ban to work
- TZ=Europe/Paris
# Logging connection attemps
- LOG_FILE=/data/bitwarden.log
- EXTENDED_LOGGING='true'
- LOG_LEVEL=warn
# Beef up a bit
- ROCKET_WORKERS=20
- WEBSOCKET_ENABLED='true'
# Hardening a bit
- SIGNUPS_ALLOWED='false'
#- DISABLE_ADMIN_TOKEN='true'
#- ADMIN_TOKEN=YouRandomTokenHere
- SHOW_PASSWORD_HINT='false'
- DISABLE_ICON_DOWNLOAD='true'
#- SMTP_HOST=smtphost
#- SMTP_PORT=port
#- SMTP_SSL='true'
#- SMTP_USERNAME=smtp_user_name
#- SMTP_PASSWORD=smtp_password
expose:
- "80"
networks:
- bitwarden_net
volumes:
- /volume1/docker/bw-data:/data
caddy:
restart: always
#Official Caddy 2.0 image
image: "caddy:latest"
container_name: Caddy_proxy
environment:
- TZ=Europe/Paris
- LOG_FILE=/data/logs/caddy.log
# Update this if SSL required according to the use of your own cert or requuest one from Let's Encrypt
#- SSLCERTIFICATE=/path/to/ssl/fullcert.pem
#- SSLKEY=/path/to/ssl/key.pem
#- ACME_AGREE='true'
#- DOMAIN=cad.example.org
ports:
- 8080:80
#- 8443:443
networks:
- bitwarden_net
volumes:
- ./caddy-data/config/Caddyfile:/etc/caddy/Caddyfile
- ./caddy-data/data:/data
- ./caddy-data/sites:/var/www/html
- Certfiles:/root/.caddy
volumes:
Certfiles:
networks:
bitwarden_net: