From da163f57438f5b7f7f19f758c5effeeea15236d6 Mon Sep 17 00:00:00 2001 From: Tamir Suliman Date: Wed, 19 Feb 2025 16:57:07 +0000 Subject: [PATCH] - Added a docker-compose.yml file for easier container orchestration - Updated the Deployment section in README.md to include instructions - Provided docker-compose up -d usage details --- README.md | 19 +++++++++++++++++++ docker-compose.yml | 11 +++++++++++ 2 files changed, 30 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index d086284..29dddc1 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,25 @@ Example podman: (master password: `test`) + +### Docker Compose + +For easier deployment, you can use Docker Compose file + +Then, to start the container run: + + +``` +docker-compose up -d + +``` + +To stop the container: + +``` +docker-compose down +``` + ### Classic This requires rust installed, compile the binary: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..51d667c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.8" +services: + keepass4web-rs: + image: ghcr.io/lixmal/keepass4web-rs:master + ports: + - "8080:8080" + volumes: + - ./config.yml:/conf/config.yml + - ./tests/test.kdbx:/db.kdbx + security_opt: + - seccomp=seccomp/keyring.json