Skip to main content

1. Installation

Alright! So your first app or not ;) Anyways we will install Bitwarden that will be used to store all your credentials for your shapps, accounts, identity, bank accounts and what not.  

Note! It is assumed that you already own a domain name  e.g vw.example.org that you will use for your instance. If you have not done that yet then please check out here how we we setup domain names and use a reverse proxy (Caddy) to connect it to your apps. 

If that is organized then we can deploy the docker compose file that can be found on their repository page. 

  1. Open your favorite docker container dashboard e.g Arcane
  2. Copy paste in the compose file that can be found below
compose.yml
services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: unless-stopped
    environment:
     - PUID=1000
     - PGID=1000
     - ADMIN_TOKEN=your_secure_token_here
     - DOMAIN=https://vw.example.org
     - SMTP_HOST=smtp.example.org     
     - SMTP_FROM=mail(at)email.org    
     - SMTP_PORT=587      
     - SMTP_SECURITY=starttls      
     - SMTP_USERNAME=mail(at)email.org     
     - SMTP_PASSWORD=smtppassword
    volumes:
      - ./vw-data/:/data/
    ports:
      - 1001:80

3. Now, you could normally leave the file as is but for 2FA it is recommended to setup SMTP Email on your instance as well s.t it can send confirmation emails and emergency contact setups. 

  1. SMTP Email setup
  2. User and Group variables
  3. Admin Token for administration access: Create a token with
openssl rand -base64 32

4. Also note the port number, which I recommend to be the next available open port from your starting port. Recommendation is to start with 1000 and then go upwards by 1 i.e 1001, 1002, etcetera. 

5. If all good then you can deploy the project

In the next section we will use the admin token created to generate an Argon token ->