First iteration of compose and .env file for vaultwarden.
This commit is contained in:
parent
96e4e659ce
commit
fb23b03ce2
9
vaultwarden/.env.template
Normal file
9
vaultwarden/.env.template
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
COMPOSE_PROJECT_NAME=vaultwarden
|
||||||
|
TOKEN="YOUR_TOKEN_HERE"
|
||||||
|
EXPOSED_PORT=8080
|
||||||
|
NDOMAIN="warden.domain.tld"
|
||||||
|
VDOMAIN="https://warden.domain.tld"
|
||||||
|
SFROM="mail@domain.tld"
|
||||||
|
SFROMNAME="Your Name"
|
||||||
|
SUSER="" # User login for Protonmail Bridge
|
||||||
|
SPASS="" # Password of the user (retrieved from inside the Protonmail Bridge container)
|
||||||
56
vaultwarden/docker-compose.yml
Normal file
56
vaultwarden/docker-compose.yml
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
x-logging:
|
||||||
|
&default-logging
|
||||||
|
driver: local
|
||||||
|
options:
|
||||||
|
max-size: "1m"
|
||||||
|
max-file: "50"
|
||||||
|
|
||||||
|
x-opt-values:
|
||||||
|
&volume-opt
|
||||||
|
driver_opts: &options
|
||||||
|
type: "nfs"
|
||||||
|
o: "addr=${IP},rw"
|
||||||
|
|
||||||
|
services:
|
||||||
|
vaultwarden:
|
||||||
|
image: vaultwarden/server:latest
|
||||||
|
container_name: vaultwarden
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
ADMIN_TOKEN: ${TOKEN} # Set token if you want the admin page available
|
||||||
|
ROCKET_PORT: ${EXPOSED_PORT}
|
||||||
|
VIRTUAL_PORT: ${EXPOSED_PORT} # Used by nginx-proxy
|
||||||
|
VIRTUAL_HOST: ${NDOMAIN} # Used by nginx-proxy
|
||||||
|
LETSENCRYPT_HOST: ${NDOMAIN}
|
||||||
|
DOMAIN: ${VDOMAIN} # Used by vaultwarden to set certain links
|
||||||
|
WEBSOCKET_ENABLED: "true"
|
||||||
|
SIGNUPS_ALLOWED: "false" # Change to true if it's the first time running
|
||||||
|
SMTP_HOST: "${protonmail-container-name}"
|
||||||
|
SMTP_FROM: ${SFROM}
|
||||||
|
SMTP_FROM_NAME: ${SFROMNAME}
|
||||||
|
SMTP_PORT: "25" # Default SMTP port for Protonmail Bridge
|
||||||
|
SMTP_USERNAME: ${SUSER}
|
||||||
|
SMTP_PASSWORD: ${SPASS}
|
||||||
|
SMTP_ACCEPT_INVALID_CERTS: "true" # Necessary when using Protonmail Bridge
|
||||||
|
volumes:
|
||||||
|
- vw-data:/data
|
||||||
|
networks:
|
||||||
|
- reverse-proxy
|
||||||
|
- vaultwarden
|
||||||
|
- protonmail
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
vw-data:
|
||||||
|
<<: *volume-opt
|
||||||
|
driver_opts:
|
||||||
|
<<: *options
|
||||||
|
device: ":/mnt/path/vaultwarden/vw-data"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
reverse-proxy:
|
||||||
|
name: rp_reverse-proxy
|
||||||
|
external: true
|
||||||
|
vaultwarden:
|
||||||
|
protonmail:
|
||||||
|
name: pmb_protonmail
|
||||||
|
external: true
|
||||||
Loading…
x
Reference in New Issue
Block a user