-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
32 lines (30 loc) · 1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3'
services:
vaultwarden-caddy:
image: ghcr.io/ajhalili2006/vaultwarden-paas-starter:localdev
build: .
container_name: vaultwarden
restart: unless-stopped # change this to always if needed, but please use f**king Kubernetes instead.
environment:
- WEBSOCKET_ENABLED=false # I might consider bundling Caddy soon.
- LOG_FILE=/data/access.log
volumes:
- ./data/vaultwarden-appdata:/data # Vaultvarden data
- ./Caddyfile:/etc/caddy/Caddyfile:ro # Caddyfile
- ./data/caddy-config:/config # caddy config
- ./data/caddy-data:/data # caddy data
# adjust ports if you're not doing the Caddy setup or for some reasons
ports:
- 8765:8765
env_file:
- .env
db:
image: postgres:13-alpine
volumes:
- vault-postgres:/var/lib/postgresql/data
environment:
# DO NOT USE THIS IN PRODUCTION!
- POSTGRES_PASSWORD=9bc7688f0cad8aa57abe86bd379d99eb07bf43c89467fdfc
- POSTGRES_DB=vaultwarden
volumes:
vault-postgres: