Initial commit
This commit is contained in:
commit
bec68c0ed9
|
@ -0,0 +1,7 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache --upgrade tor
|
||||
ADD config/torrc /etc/tor/torrc
|
||||
|
||||
USER tor
|
||||
ENTRYPOINT tor
|
|
@ -0,0 +1,7 @@
|
|||
SOCKSPort 0.0.0.0:9050
|
||||
SOCKSPolicy accept *
|
||||
Sandbox 1
|
||||
AvoidDiskWrites 1
|
||||
ConnectionPadding 1
|
||||
NewCircuitPeriod 10
|
||||
EnforceDistinctSubnets 1
|
|
@ -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
|
Reference in New Issue