chriswayg / tor-server

:whale: An efficient and secure Tor relay server Docker image based on Debian
https://hub.docker.com/r/chriswayg/tor-server/
MIT License
60 stars 21 forks source link

./docker-compose.yml", line 14, column 7 #3

Open jaidetura55 opened 4 years ago

jaidetura55 commented 4 years ago

./docker-compose.yml", line 14, column 7

jaidetura55 commented 4 years ago

version: '2.2' services: relay: image: chriswayg/tor-server init: true restart: always network_mode: host

the ports are not needed with network_mode host

#ports:
  #- "9001:9001"
  #- "9030:9030"
  #- "54444:54444"
  #- "7002:7002"
  environment:
  TOR_NICKNAME: centminer101
  CONTACT_EMAIL: jaidetura55@gmail.com
volumes:
  ## mount and DataDirectory and custom `torrc` here
  - ./tor-data/:/var/lib/tor/
  - ./torrc:/etc/tor/torrc
  ## alternatively mount previously saved identity keys here
  #- ./tests/tor-data/keys/secret_id_key:/var/lib/tor/keys/secret_id_key
  #- ./tests/tor-data/keys/ed25519_master_id_secret_key:/var/lib/tor/keys/secret_id_key