diff --git a/bitwarden/compose.yml b/bitwarden/compose.yml new file mode 100644 index 0000000..6c62463 --- /dev/null +++ b/bitwarden/compose.yml @@ -0,0 +1,18 @@ +services: + bitwarden: + env_file: + - settings.env + image: ${REGISTRY:-ghcr.io/bitwarden}/self-host:${TAG:-beta} + networks: + - reverse-proxy + ports: + - "80:8080" + - "443:8443" + restart: always + volumes: + - bitwarden:/etc/bitwarden + - logs:/var/log/bitwarden + +networks: + reverse-proxy: + external:true diff --git a/bitwarden/settings.env b/bitwarden/settings.env new file mode 100644 index 0000000..6a96273 --- /dev/null +++ b/bitwarden/settings.env @@ -0,0 +1,70 @@ +##################### +# Required Settings # +##################### + +# Server hostname +BW_DOMAIN=bitwarden2.akanealw.com + +# Database +# Available providers are sqlserver, postgresql, mysql/mariadb, or sqlite +BW_DB_PROVIDER=sqlite +BW_DB_FILE=vault.db +# BW_DB_SERVER=db +# BW_DB_DATABASE=bitwarden_vault +# BW_DB_USERNAME=bitwarden +# BW_DB_PASSWORD=super_strong_password + +# Installation information +# Get your ID and key from https://bitwarden.com/host/ +BW_INSTALLATION_ID=00000000-0000-0000-0000-000000000000 +BW_INSTALLATION_KEY=xxxxxxxxxxxx + +##################### +# Optional Settings # +##################### +# Learn more here: https://bitwarden.com/help/environment-variables/ + +# Container user ID/group ID +PUID=1000 +PGID=1000 + +# Webserver ports +#BW_PORT_HTTP=8080 +#BW_PORT_HTTPS=8443 + +# SSL +#BW_ENABLE_SSL=true +#BW_ENABLE_SSL_CA=true +#BW_SSL_CERT=ssl.crt +#BW_SSL_KEY=ssl.key +#BW_SSL_CA_CERT=ca.crt + +# Services +# Some services, namely for enterprise use cases, are disabled by default. Defaults shown below. +#BW_ENABLE_ADMIN=true +#BW_ENABLE_API=true +#BW_ENABLE_EVENTS=false +#BW_ENABLE_ICONS=true +#BW_ENABLE_IDENTITY=true +#BW_ENABLE_NOTIFICATIONS=true +#BW_ENABLE_SCIM=false +#BW_ENABLE_SSO=false + +#BW_ICONS_PROXY_TO_CLOUD=false + +# Mail +#globalSettings__mail__replyToEmail=noreply@$BW_DOMAIN +#globalSettings__mail__smtp__host=smtphost.example.com +#globalSettings__mail__smtp__port=587 +#globalSettings__mail__smtp__ssl=false +#globalSettings__mail__smtp__username=smtpusername +#globalSettings__mail__smtp__password=smtppassword + +# Yubikey +#globalSettings__yubico__clientId=REPLACE +#globalSettings__yubico__key=REPLACE + +# Other +#globalSettings__disableUserRegistration=false +#globalSettings__hibpApiKey=REPLACE +#adminSettings__admins=admin1@email.com,admin2@email.com \ No newline at end of file