rework compose example
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a4d48c690d
commit
7705ade5db
33
README.md
33
README.md
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user