32 lines
858 B
YAML
32 lines
858 B
YAML
version: '2'
|
|
services:
|
|
vw:
|
|
image: vaultwarden/server:alpine
|
|
environment:
|
|
- DATABASE_URL=postgresql://bitwarden:password_here@vw-db_postgres:5432/bitwarden?sslmode=disable
|
|
- ADMIN_TOKEN=
|
|
- WEBSOCKETS_ENABLED=true
|
|
volumes:
|
|
- /containers/data/bitwarden/bwdata:/data
|
|
ports:
|
|
- '60093:80'
|
|
- '3012:3012'
|
|
restart: always
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|
|
|
|
vw-db_postgres:
|
|
image: postgres:12-alpine
|
|
restart: always
|
|
volumes:
|
|
- /containers/data/bitwarden/pgsql:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=password_here
|
|
- POSTGRES_USER=bitwarden
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
|