Skip to content

Commit

Permalink
feat: add basic tor proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Aug 19, 2024
1 parent a44834a commit d95cf77
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@ export_runner_node: # image_runner_node
@@${CMD} save \
"${IMAGE_NAME}:${IMAGE_TAG}"

image_tor:
podman compose build tor

image_firefox: images_deps_firefox
podman compose build firefox

Expand Down
12 changes: 12 additions & 0 deletions compose/proxies.compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ services:
volumes:
- 'verdaccio_storage:/verdaccio/storage'

tor:
profiles:
- tor
image: 'localhost/l7/tor:latest'
build:
context: ../imags/tor
dockerfile: Containerfile
networks:
public:
internal:
ipv4_address: 10.7.8.139

##########

configs:
Expand Down
14 changes: 14 additions & 0 deletions imags/tor/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# syntax=docker/dockerfile:1.4-labs
ARG ALPINE_VERSION=3.20
ARG BASE_IMAGE=docker.io/alpine:3.20
FROM ${BASE_IMAGE}

RUN apk --update --no-cache add tor \
&& rm -rf /var/cache/apk

COPY torrc /etc/torrc

USER tor
WORKDIR /var/lib/tor

ENTRYPOINT ["/usr/bin/tor", "-f", "/etc/torrc"]
2 changes: 2 additions & 0 deletions imags/tor/torrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Log notice stdout
SocksPort 0.0.0.0:9050

0 comments on commit d95cf77

Please sign in to comment.