Giter Site home page Giter Site logo

tor-alpine's Introduction

Christian Klemm

LinkedIn Badge XING Badge Profile views

👨‍💻 About Me

I'm a backend developer and DevOps engineer from Germany working for a company that develops an enterprise SaaS Platform hosted on Microsoft Azure.

GitHub Streak

Top Langs

🛠️ Languages and Tools

C#   .NET   MySQL   SQL Server   JetBrains   VisualStudio   Docker   Azure   GitLab   Git   Debian  

📫 Contact

Mail PGP

tor-alpine's People

Contributors

dngray avatar klemmchr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tor-alpine's Issues

Error creating directory on torrc.config override

When I try to override the config file using a volume mount, I get an error running the container:

Nov 05 21:50:06.750 [notice] Tor 0.4.1.6 running on Linux with Libevent 2.1.10-stable, OpenSSL 1.1.1c, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
Nov 05 21:50:06.750 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Nov 05 21:50:06.751 [notice] Read configuration file "/etc/tor/torrc.config".
Nov 05 21:50:06.755 [notice] Opening OR listener on 0.0.0.0:9001
Nov 05 21:50:06.755 [notice] Opened OR listener on 0.0.0.0:9001
Nov 05 21:50:06.755 [notice] Opening Directory listener on 0.0.0.0:9030
Nov 05 21:50:06.755 [notice] Opened Directory listener on 0.0.0.0:9030
Nov 05 21:50:06.755 [warn] Error creating directory /var/lib/tor/.tor: Permission denied
Nov 05 21:50:06.755 [warn] Failed to parse/validate config: Couldn't create private data directory "/var/lib/tor/.tor"
Nov 05 21:50:06.755 [err] Reading config failed--see warnings above.

docker-compose.yml:

version: "3.7"
services:
    torrelay:
        container_name: torrelay
        hostname: torrelay
        restart: always
        image: chris579/tor-alpine
        volumes:
          - /etc/localtime:/etc/localtime:ro
          - /data/tor/data:/var/lib/tor
          - /data/tor/config/torrc.config:/etc/tor/torrc.config
        ports:
          - 9001:9001
          - 9030:9030

Obviously it's some permission issue, but I can't seem to figure out what's wrong. I haven't volume mapped the whole /var/lib/tor directory, so I was assuming it shouldn't be an issue in that regard, but then I don't get this issue when I'm not overriding the config through a volume map.

Do I need to override the config some other way that I'm not seeing?

[EDIT]
Trying to pass the PUID and PGID didn't help either.

        environment:
          - PUID=${PUID}
          - PGID=${PGID}

The /data/tor folder and all contents are owned by the docker user.
Mapping the directory instead of the file doesn't work either:

          - /data/tor/config:/etc/tor

nyx support

Hello what about adding nyx support for statistics?

https://nyx.torproject.org/

RUN apk add --update \
     python \
     python-dev \
     py-pip \
     build-base \
  && pip install nyx

Also will need

ControlPort 9051

and authentication method of course

And maybe add localtime?

-v /etc/localtime:/etc/localtime \

And add environment:

-e 'NICKNAME=ehn' \

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.