Skip to content

Instantly share code, notes, and snippets.

@dropmeaword
Created July 8, 2024 18:28
Show Gist options
  • Save dropmeaword/adf55523bd7c0871ae1ea65601a8237d to your computer and use it in GitHub Desktop.
Save dropmeaword/adf55523bd7c0871ae1ea65601a8237d to your computer and use it in GitHub Desktop.
dockerized instance of vaultwarden reverse-proxied with Caddy
version: '3'
services:
vaultwarden:
image: vaultwarden/server:1.30.5-alpine
container_name: vaultwarden
restart: always
ports:
- 3000:80
environment:
- WEBSOCKET_ENABLED=true
- SIGNUPS_ALLOWED=false
- DOMAIN=<YOUR DOMAIN HERE>
- ADMIN_TOKEN=<YOUR TOKEN HERE>
- ROCKET_WORKERS=10
- DISABLE_ICON_DOWNLOAD=true
volumes:
- ./vw-data:/data
caddy:
image: caddy
container_name: caddy
restart: always
network_mode: host
ports:
- 80:80
- 443:443
volumes:
- /srv/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- /srv/caddy/config:/config
- /srv/caddy/data:/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment