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. If you prefer that someone else takes care of it then we recommend to use one of the community instances hosted by vaultwarden.net or vaultwarden.uk.ย 

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 invitation and confirmation emails to your users and you can setup emergency contacts.ย 

4. At this moment you can still ignore the password as we will setup an Admin token using argon2id on the next page for the Admin page.ย 

5. 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.ย 

6. 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 -->