trivial
This commit is contained in:
parent
eb3b349421
commit
e42340e112
@ -3,7 +3,7 @@
|
|||||||
## Launching Tor
|
## 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
|
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="sudo -E docker"
|
||||||
alias docker-compose="sudo -E docker-compose"
|
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 $@; } }
|
function tor() { { docker_helper $FUNCNAME $@; } }
|
||||||
|
|
||||||
# OR
|
# OR
|
||||||
|
@ -15,5 +15,3 @@ services:
|
|||||||
cap_add:
|
cap_add:
|
||||||
- IPC_LOCK # lock memory to prevent sensitive values from being swapped to disk.
|
- IPC_LOCK # lock memory to prevent sensitive values from being swapped to disk.
|
||||||
shm_size: 4G
|
shm_size: 4G
|
||||||
ports:
|
|
||||||
- 127.0.0.1:9150:9150/tcp
|
|
||||||
|
Loading…
Reference in New Issue
Block a user