Skip to content

Commit fde9dd6

Browse files
committed
initial commit
0 parents  commit fde9dd6

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM alpine:3.11
2+
3+
LABEL maintainer "zyclonite"
4+
LABEL version "0.4.1.7"
5+
LABEL description "Tor as Docker Image"
6+
7+
ARG version="0.4.1.7-r0"
8+
9+
RUN apk add --no-cache --purge --clean-protected -u ca-certificates tor=$version \
10+
&& chmod -R 700 /var/lib/tor \
11+
&& rm -rf /var/cache/apk/*
12+
13+
ADD torrc /etc/tor/torrc
14+
15+
EXPOSE 9050
16+
17+
VOLUME /etc/tor
18+
VOLUME /var/lib/tor
19+
20+
ENTRYPOINT [ "/usr/bin/tor" ]
21+
CMD [ "-f", "/etc/tor/torrc" ]

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Lukas Prettenthaler (zyclonite)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## tor-docker
2+
3+
#### Description
4+
5+
Tor as Docker Image.
6+
7+
#### Run
8+
9+
most simple way of running the container
10+
11+
docker run --rm zyclonite/tor
12+
13+
#### Source
14+
15+
https://github.com/zyclonite/tor-docker

torrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
DataDirectory /var/lib/tor
2+
PidFile /var/lib/tor/pid
3+
RunAsDaemon 0
4+
User tor
5+
6+
ControlPort 9051
7+
SocksPort 9050
8+
9+
CookieAuthentication 1
10+
CookieAuthFileGroupReadable 1
11+
CookieAuthFile /var/lib/tor/control.authcookie
12+
13+
Log notice stdout

0 commit comments

Comments
 (0)