initial commit
This commit is contained in:
32
Dockerfile
Normal file
32
Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends tor && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Single-step config with foreground mode pre-configured
|
||||||
|
RUN cat <<EOF > /etc/tor/torrc
|
||||||
|
SocksPort 0.0.0.0:9050
|
||||||
|
ControlPort 0
|
||||||
|
ORPort 0
|
||||||
|
DirPort 0
|
||||||
|
TransPort 0
|
||||||
|
DNSPort 0
|
||||||
|
ExitPolicy reject *:*
|
||||||
|
|
||||||
|
AvoidDiskWrites 1
|
||||||
|
MaxCircuitDirtiness 600
|
||||||
|
NewCircuitPeriod 1800
|
||||||
|
DisableDebuggerAttachment 1
|
||||||
|
ReducedConnectionPadding 0
|
||||||
|
CircuitPadding 1
|
||||||
|
ReducedCircuitPadding 0
|
||||||
|
HardwareAccel 0
|
||||||
|
|
||||||
|
Log notice stdout
|
||||||
|
RunAsDaemon 0
|
||||||
|
EOF
|
||||||
|
|
||||||
|
USER debian-tor
|
||||||
|
CMD ["tor", "-f", "/etc/tor/torrc"]
|
||||||
5
README.md
Normal file
5
README.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
### Test connection:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl --socks5-hostname 127.0.0.1:9050 https://check.torproject.org/api/ip
|
||||||
|
```
|
||||||
12
compose.yml
Normal file
12
compose.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
services:
|
||||||
|
tor_dev:
|
||||||
|
image: git.shadowvault.eu/zerostate/tor-dev:latest
|
||||||
|
container_name: tor-dev
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:9050:9050"
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
cap_drop:
|
||||||
|
- ALL
|
||||||
|
cap_add:
|
||||||
|
- NET_BIND_SERVICE
|
||||||
Reference in New Issue
Block a user