# 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_PATH:-./data}:/var/lib/tor" ports: - "${OR_PORT}:${OR_PORT}/tcp" - "${PT_PORT}:${PT_PORT}/tcp" restart: unless-stopped