update README and docker-compose file
This commit is contained in:
parent
5be65ce5d6
commit
0e47537d7a
14
README.md
Normal file
14
README.md
Normal file
@ -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 $@) }
|
||||||
|
```
|
@ -2,7 +2,7 @@ version: '2'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
keepass2:
|
keepass2:
|
||||||
build: ./
|
image: andrey01/keepass2
|
||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/.X11-unix:/tmp/.X11-unix
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
||||||
|
Loading…
Reference in New Issue
Block a user