From 0e47537d7a066ea365cb615cec5e7f9468aa51e0 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Sat, 30 Apr 2016 21:13:30 +0200 Subject: [PATCH] update README and docker-compose file --- README.md | 14 ++++++++++++++ docker-compose.yml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..0447659 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# keepass2 in Docker + +Running keepass2 in Docker + +## Launching keepass2 + +### with Docker Compose + +You can use the following shortcut function and place it to your `~/.bash_aliases` file + +``` +function docker_helper() { (cd ~/docker/$1; docker-compose run --rm "$@" & disown) } +function keepass2() { (docker_helper $FUNCNAME $@) } +``` diff --git a/docker-compose.yml b/docker-compose.yml index a65bcef..44c1459 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '2' services: keepass2: - build: ./ + image: andrey01/keepass2 network_mode: bridge volumes: - /tmp/.X11-unix:/tmp/.X11-unix