docker-stacks/tor-obfs4-bridge/docker-compose.yml
2021-12-16 22:42:34 +00:00

30 lines
1.1 KiB
YAML

# 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}