tor-obfs4-bridge. docker-compose.yml added.
This commit is contained in:
parent
129f227649
commit
f64b46387d
30
tor-obfs4-bridge/docker-compose.yml
Normal file
30
tor-obfs4-bridge/docker-compose.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# https://hub.docker.com/r/thetorproject/obfs4-bridge
|
||||||
|
|
||||||
|
# Check additional information and examples here:
|
||||||
|
# https://gitlab.torproject.org/tpo/anti-censorship/docker-obfs4-bridge/-/raw/main/docker-compose.yml
|
||||||
|
# https://gitlab.torproject.org/tpo/anti-censorship/docker-obfs4-bridge/-/raw/main/.env
|
||||||
|
|
||||||
|
version: "3.7"
|
||||||
|
services:
|
||||||
|
tor-obfs4-bridge:
|
||||||
|
image: thetorproject/obfs4-bridge:latest
|
||||||
|
environment:
|
||||||
|
# Exit with an error message if OR_PORT is unset or empty.
|
||||||
|
- OR_PORT=${OR_PORT:?Env var OR_PORT is not set.}
|
||||||
|
# Exit with an error message if PT_PORT is unset or empty.
|
||||||
|
- PT_PORT=${PT_PORT:?Env var PT_PORT is not set.}
|
||||||
|
# Exit with an error message if EMAIL is unset or empty.
|
||||||
|
- EMAIL=${EMAIL:?Env var EMAIL is not set.}
|
||||||
|
# Nickname with default value: "DockerObfs4Bridge"
|
||||||
|
- NICKNAME=${NICKNAME:-DockerObfs4Bridge}
|
||||||
|
env_file: .env
|
||||||
|
volumes:
|
||||||
|
- data:/var/lib/tor
|
||||||
|
ports:
|
||||||
|
- ${OR_PORT}:${OR_PORT}
|
||||||
|
- ${PT_PORT}:${PT_PORT}
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
data:
|
||||||
|
name: tor-obfs4-bridge-datadir-${OR_PORT}-${PT_PORT}
|
Loading…
Reference in a new issue