mirror of
https://codeberg.org/gigirassy/nixos-server-config
synced 2026-08-30 23:37:41 +00:00
Add compose-configs/torbridges/compose.yml
This commit is contained in:
@@ -0,0 +1,54 @@
|
|||||||
|
# two bridges i host to help out with tor project
|
||||||
|
services:
|
||||||
|
obfs4-bridge:
|
||||||
|
image: thetorproject/obfs4-bridge:latest
|
||||||
|
networks:
|
||||||
|
- obfs4_bridge_external_network1
|
||||||
|
environment:
|
||||||
|
# Exit with an error message if OR_PORT is unset or empty.
|
||||||
|
- OR_PORT=31312
|
||||||
|
# Exit with an error message if PT_PORT is unset or empty.
|
||||||
|
- PT_PORT=31311
|
||||||
|
# Exit with an error message if EMAIL is unset or empty.
|
||||||
|
- EMAIL=no email. bridge hosted by blitzw.in
|
||||||
|
# Nickname with default value: "DockerObfs4Bridge"
|
||||||
|
- NICKNAME=Moscardo
|
||||||
|
- OBFS4_ENABLE_ADDITIONAL_VARIABLES=1
|
||||||
|
- OBFS4V_BridgeDistribution=settings
|
||||||
|
volumes:
|
||||||
|
- data1:/var/lib/tor
|
||||||
|
ports:
|
||||||
|
- 31312:31312
|
||||||
|
- 31311:31311
|
||||||
|
restart: unless-stopped
|
||||||
|
obfs4-bridge2:
|
||||||
|
image: thetorproject/obfs4-bridge:latest
|
||||||
|
networks:
|
||||||
|
- obfs4_bridge_external_network2
|
||||||
|
environment:
|
||||||
|
# Exit with an error message if OR_PORT is unset or empty.
|
||||||
|
- OR_PORT=31314
|
||||||
|
# Exit with an error message if PT_PORT is unset or empty.
|
||||||
|
- PT_PORT=31313
|
||||||
|
# Exit with an error message if EMAIL is unset or empty.
|
||||||
|
- EMAIL=no email. bridge hosted by blitzw.in
|
||||||
|
# Nickname with default value: "DockerObfs4Bridge"
|
||||||
|
- NICKNAME=Wasp
|
||||||
|
- OBFS4_ENABLE_ADDITIONAL_VARIABLES=1
|
||||||
|
- OBFS4V_BridgeDistribution=settings
|
||||||
|
volumes:
|
||||||
|
- data2:/var/lib/tor
|
||||||
|
ports:
|
||||||
|
- 31313:31313
|
||||||
|
- 31314:31314
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
data1:
|
||||||
|
name: tor-datadir
|
||||||
|
data2:
|
||||||
|
name: tor-datadir2
|
||||||
|
|
||||||
|
networks:
|
||||||
|
obfs4_bridge_external_network1:
|
||||||
|
obfs4_bridge_external_network2:
|
||||||
Reference in New Issue
Block a user