From f64b46387d6d9633ec16126e018fbba5b32ebe0f Mon Sep 17 00:00:00 2001 From: Alexey Eschenko Date: Thu, 16 Dec 2021 22:42:34 +0000 Subject: [PATCH] tor-obfs4-bridge. docker-compose.yml added. --- tor-obfs4-bridge/docker-compose.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tor-obfs4-bridge/docker-compose.yml diff --git a/tor-obfs4-bridge/docker-compose.yml b/tor-obfs4-bridge/docker-compose.yml new file mode 100644 index 0000000..3bd0e7d --- /dev/null +++ b/tor-obfs4-bridge/docker-compose.yml @@ -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} \ No newline at end of file