Aller au contenu

Bitwarden sous Docker

Installer Bitwarden dans un conteneur Docker permet de déployer rapidement un gestionnaire de mot de passe sécurisé.

Installation de Bitwarden

1. Créer un dossier Bitwarden
mkdir Bitwarden 
cd Bitwarden
2. Créer un fichier docker-compose.yml et y coller la configuration suivante :
nano docker-compose.yml
version: '3'


services:
  bitwarden:
    image: bitwardenrs/server
    restart: always
    ports:
      - 8000:80
    volumes:
      - ./bw-data:/data
    environment:
      WEBSOCKET_ENABLED: 'true' # Required to use websockets
      SIGNUPS_ALLOWED: 'true'   # set to false to disable signups
3. Lancer la commande docker-compose up -d
docker-compose up -d 
C:\Users\louis\Downloads
λ docker-compose up -d
[+] Running 8/8
 - bitwarden Pulled                                                                                 21.4s
   - 6552179c3509 Pull complete                                                                     17.5s
   - 925b2f3825d0 Pull complete                                                                     18.0s
   - 1a465734304a Pull complete                                                                     18.0s
   - 5f8808cda634 Pull complete                                                                     18.3s
   - f6ecd4d54b81 Pull complete                                                                     18.5s
   - b1abe25334e8 Pull complete                                                                     18.6s
   - d63eccace234 Pull complete                                                                     18.6s [+] Running 2/2
 - Network downloads_default        Created                                                          0.8s  - Container downloads-bitwarden-1  Started                                                          2.3s

C:\Users\louis\Downloads
λ docker ps
CONTAINER ID   IMAGE                COMMAND                  CREATED          STATUS
       PORTS                            NAMES
c5b06c4abfe0   bitwardenrs/server   "/usr/bin/dumb-init …"   36 seconds ago   Up 33 seconds (health: starting)   3012/tcp, 0.0.0.0:8000->80/tcp   downloads-bitwarden-1

Voici l’écran de connexion de Bitwarden

Capture decran 2023 01 25 161727