rework compose example
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-12-30 17:22:42 +01:00
parent a4d48c690d
commit 7705ade5db
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -16,38 +16,7 @@ This is a rootless custom Docker image for [bitwarden_rs](https://github.com/dan
### Docker Compose ### Docker Compose
Compatible with docker-compose v3 schemas. Please take a look at the [example](https://gitea.rknet.org/docker/bitwardenrs/src/branch/main/docker-compose.yml) compose file from the git repo.
```Yaml
---
version: '3'
services:
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_DB: bitwarden
POSTGRES_PASSWORD: pass
POSTGRES_USER: user
bitwardenrs:
container_name: bitwardenrs
image: thegeeklab/bitwardenrs:latest
depends_on:
- postgres
ports:
- "80:8080"
volumes:
- data:/app/data
environment:
BITWARDENRS_DATABASE_URL: postgresql://user:pass@bitwardenrs_postgres:5432/bitwarden
BITWARDENRS_ADMIN_TOKEN: test
volumes:
data:
driver: local
```
## Configuration ## Configuration