No description
Find a file
2024-06-29 02:49:55 +02:00
.env Create .env 2024-06-29 02:27:47 +02:00
add_admin_token.sh Create add_admin_token.sh 2024-06-29 02:28:40 +02:00
compose.yml Create compose.yml 2024-06-29 02:30:19 +02:00
LICENSE Initial commit 2024-06-29 02:25:06 +02:00
nginx.conf Create nginx.conf 2024-06-29 02:31:06 +02:00
README.md Update README.md 2024-06-29 02:49:55 +02:00

What we need

Install notes

apt update apt upgrade

apt install git pkg-config libssl-dev curl mc argon2 ca-certificates

install -m 0755 -d /etc/apt/keyrings

curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc

chmod a+r /etc/apt/keyrings/docker.asc

echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

apt-get update

apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

docker run hello-world

mkdir /root/nginx mkdir /root/vaultwarden

Firewall

ufw allow 22 ufw allow 443 ufw enable

What now?

We need this in /root/nginx:

*ca.pem : Public Key plus certificate chain *key.pem : Private SSL key decrypted
*nginx.conf

We want this file modes:

-rw------- 1 root root 3268 Jun 28 17:30 key.pem
-rw------- 1 root root 8964 Jun 28 17:30 ca.pem
-rw-r--r-- 1 root root 1327 Jun 28 17:47 nginx.conf

We need this in /root/vaultwarden:

  • .env: Change both passwords
  • add_admin_token.sh : Change password and run ONCE: sh add_admin_token.sh
  • compose.yml

In /root/vaultwarden

Start docker:

docker compose up -d

Stop docker:

docker compose down

Show logs continously:

docker compose logs -f