Initial commit
This commit is contained in:
commit
7927f9d70b
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.env
|
||||
vw-data
|
||||
caddy-data
|
||||
caddy-config
|
16
Caddyfile
Normal file
16
Caddyfile
Normal file
@ -0,0 +1,16 @@
|
||||
{$DOMAIN} {
|
||||
log {
|
||||
level INFO
|
||||
output file {$LOG_FILE} {
|
||||
roll_size 10MB
|
||||
roll_keep 10
|
||||
}
|
||||
}
|
||||
|
||||
tls {
|
||||
dns cloudflare {$CF_API_TOKEN}
|
||||
}
|
||||
encode zstd gzip
|
||||
|
||||
reverse_proxy vaultwarden:80
|
||||
}
|
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@ -0,0 +1,30 @@
|
||||
services:
|
||||
vaultwarden:
|
||||
image: vaultwarden/server:latest
|
||||
container_name: vaultwarden
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DOMAIN: "https://vault.gbanyan.net"
|
||||
SIGNUPS_ALLOWED: "false"
|
||||
volumes:
|
||||
- ./vw-data:/data
|
||||
|
||||
caddy:
|
||||
env_file:
|
||||
- .env
|
||||
image: ghcr.io/caddybuilds/caddy-cloudflare:latest
|
||||
container_name: caddy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- 443:443/udp
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- ./caddy-config:/config
|
||||
- ./caddy-data:/data
|
||||
environment:
|
||||
DOMAIN: "https://vault.gbanyan.net"
|
||||
EMAIL: CLOUDFARE_EMAIL
|
||||
CF_API_TOKEN: CLOUDFLARE_DNS_API_TOKEN
|
||||
LOG_FILE: "/data/access.log"
|
Loading…
x
Reference in New Issue
Block a user