This commit is contained in:
Andy 2018-12-28 22:06:09 +01:00
parent eb3b349421
commit e42340e112
Signed by: arno
GPG Key ID: 9076D5E6B31AE99C
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
## Launching Tor
```
docker-compose run --rm tor
docker-compose build && docker-compose up -d
```
You can use the following shortcut function and place it to your `~/.bash_aliases` file
@ -12,7 +12,7 @@ You can use the following shortcut function and place it to your `~/.bash_aliase
alias docker="sudo -E docker"
alias docker-compose="sudo -E docker-compose"
function docker_helper() { { pushd ~/git/$1; docker-compose rm -fa "$1"; docker-compose run -d --name "$1" "$@"; popd; } }
function docker_helper() { { pushd ~/git/$1; docker-compose rm -fa "$1"; docker-compose up -d --name "$1" "$@"; popd; } }
function tor() { { docker_helper $FUNCNAME $@; } }
# OR

View File

@ -15,5 +15,3 @@ services:
cap_add:
- IPC_LOCK # lock memory to prevent sensitive values from being swapped to disk.
shm_size: 4G
ports:
- 127.0.0.1:9150:9150/tcp