Initial commit

This commit is contained in:
caskd 2019-12-26 19:22:11 +01:00
commit bec68c0ed9
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
3 changed files with 46 additions and 0 deletions

7
build/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk add --no-cache --upgrade tor
ADD config/torrc /etc/tor/torrc
USER tor
ENTRYPOINT tor

7
build/config/torrc Normal file
View File

@ -0,0 +1,7 @@
SOCKSPort 0.0.0.0:9050
SOCKSPolicy accept *
Sandbox 1
AvoidDiskWrites 1
ConnectionPadding 1
NewCircuitPeriod 10
EnforceDistinctSubnets 1

32
tor.yml Normal file
View File

@ -0,0 +1,32 @@
version: '3.7'
x-logging: &json-log
driver: 'json-file'
options:
max-size: 20m
max-file: '5'
networks:
backend:
driver: overlay
attachable: true
driver_opts:
encrypted: "true"
services:
server:
image: localhost:5000/tor
logging: *json-log
deploy:
replicas: 1
restart_policy:
condition: any
delay: 10s
update_config:
parallelism: 1
delay: 5s
order: start-first
ports:
- '9050:9050'
networks:
- backend