Setup for services on personal server
Services currently running:
- Website at gutzkow.com. Image from unchained
- Vaultwarden passwordmanager
- Backups of vaultwarden to google drive
- Nginx and certbot for reverse proxy and letsencrypt certificates
git clone [email protected]:CJGutz/server-infrastructure.git
cd server-infrastructure
Create environment variables. Replace the ones found in the example environment file.
cp .env.example .env
To enable the admin panel for vaultwarden, you need to generate an admin token and add the token to the ADMIN_TOKEN environment variable. To generate from a password, run:
docker exec -it vaultwarden /vaultwarden hash --preset owaspdocker \
exec -it vaultwarden /vaultwarden hash --preset owasp
This assumes the container running vaultwarden is named vaultwarden
as the docker-compose.yml
file defines.
To start services, run:
sh setup.sh