tor updates

This commit is contained in:
tolerryan
2025-11-08 01:02:42 -06:00
parent d40c95e5e7
commit cc3a25fb9e
2 changed files with 5 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ services:
#depends_on: #depends_on:
# - nginx # - nginx
volumes: volumes:
- /home/docker/torrc:/etc/tor/torrc - /home/docker/tor:/etc/tor/
ports: ports:
- 9001:9001 #ORPort - 9001:9001 #ORPort
- 9030:9030 #DirPort - 9030:9030 #DirPort

View File

@@ -46,9 +46,10 @@
TimeoutStartSec=0 TimeoutStartSec=0
Restart=always Restart=always
RestartSec=10s RestartSec=10s
ExecStartPre=/usr/bin/docker pull osminogin/tor-simple RemainAfterExit=yes
ExecStart=/usr/bin/docker run --rm --name tor -p 127.0.0.1:9050:9050 osminogin/tor-simple WorkingDirectory=/home/docker
ExecStop=/usr/bin/docker stop tor ExecStart=/usr/bin/docker compose -f docker-compose.yml up -d
ExecStop=/usr/bin/docker compose -f docker-compose.yml down
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target