Skip to content

Commit

Permalink
add bitwarden
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Mar 4, 2024
1 parent d07ec01 commit ccd53f1
Show file tree
Hide file tree
Showing 12 changed files with 124 additions and 33 deletions.
45 changes: 45 additions & 0 deletions apps/bitwarden/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
W9_REPO=bitwarden/self-host
W9_DIST=community
W9_VERSION=beta

W9_HTTP_PORT_SET=9001

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####

W9_ID=bitwarden
W9_HTTP_PORT=8080
W9_URL=bitwarden.test2.websoft9.cn
W9_URL_REPLACE=true

# Get from: https://bitwarden.com/host/
# Why? https://bitwarden.com/help/hosting-faqs/#q-what-are-my-installation-id-and-installation-key-used-for
# This must set after or before applicatin up
W9_BW_INSTALLATION_ID_SET=00000000-0000-0000-0000-000000000000
W9_BW_INSTALLATION_KEY_SET=xxxxxxxxxxxx

W9_NETWORK=websoft9

#### ----------------------------------------------------------------------------------------- ####


# Below environment is created by bitwarden: https://github.com/bitwarden/self-host/blob/main/docker-unified/settings.env

#####################
# Required Settings #
#####################

# Server hostname
BW_DOMAIN=$W9_URL

# Database
# Available providers are sqlserver, postgresql, mysql/mariadb, or sqlite
BW_DB_PROVIDER=mysql
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=$W9_BW_INSTALLATION_ID_SET
BW_INSTALLATION_KEY=$W9_BW_INSTALLATION_KEY_SET
5 changes: 5 additions & 0 deletions apps/bitwarden/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CHANGELOG

## Release
### Fixes and Enhancements

5 changes: 5 additions & 0 deletions apps/bitwarden/Notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Bitwarden

- need register ID and Key before install
- Offcial docs not give a simple docker-compose install, it give install script

42 changes: 42 additions & 0 deletions apps/bitwarden/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# image: https://hub.docker.com/r/bitwarden/self-host
# compose: https://github.com/bitwarden/self-host/blob/main/docker-unified/docker-compose.yml
# environment: https://github.com/bitwarden/self-host/blob/main/docker-unified/settings.env
# docs: https://bitwarden.com/help/install-on-premise-linux/

version: '3.8'

services:
bitwarden:
image: $W9_REPO:$W9_VERSION
container_name: $W9_ID
restart: unless-stopped
ports:
- $W9_HTTP_PORT_SET:8080
env_file: .env
volumes:
- bitwarden:/etc/bitwarden
- logs:/var/log/bitwarden
depends_on:
- db

db:
environment:
MARIADB_USER: "bitwarden"
MARIADB_PASSWORD: "super_strong_password"
MARIADB_DATABASE: "bitwarden_vault"
MARIADB_RANDOM_ROOT_PASSWORD: "true"
image: mariadb:10
container_name: $W9_ID-mariadb
restart: always
volumes:
- db:/var/lib/mysql

volumes:
db:
bitwarden:
logs:

networks:
default:
name: $W9_NETWORK
external: true
3 changes: 3 additions & 0 deletions apps/bitwarden/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# About

This folder includes files mount to container and used by Websoft9
18 changes: 18 additions & 0 deletions apps/bitwarden/variables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Bitwarden ",
"trademark": "bitwarden ",
"release": false,
"fork_url": "https://github.com/bitwarden/server",
"edition": [
{
"dist": "community",
"version": ["dev"]
}
],
"requirements": {
"cpu": "1",
"memory": "2",
"disk": "1",
"url": "https://bitwarden.com/help/install-on-premise-linux/#system-specifications"
}
}
3 changes: 3 additions & 0 deletions apps/odoo/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# About

This folder includes files mount to container and used by Websoft9
1 change: 0 additions & 1 deletion apps/odoo/src/after_up.sh

This file was deleted.

3 changes: 3 additions & 0 deletions apps/odoo/src/extra-addons/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# About

This folder includes files for your Odoo development
3 changes: 0 additions & 3 deletions apps/odoo/src/filelist

This file was deleted.

1 change: 0 additions & 1 deletion apps/odoo/src/get_version.sh

This file was deleted.

28 changes: 0 additions & 28 deletions apps/template/README.md

This file was deleted.

0 comments on commit ccd53f1

Please sign in to comment.