2021-12-16 22:42:34 +00:00
|
|
|
# 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:
|
2022-08-01 00:10:21 +00:00
|
|
|
- "${DATA_PATH:-./data}:/var/lib/tor"
|
2021-12-16 22:42:34 +00:00
|
|
|
ports:
|
2022-08-01 00:10:21 +00:00
|
|
|
- "${OR_PORT}:${OR_PORT}/tcp"
|
|
|
|
- "${PT_PORT}:${PT_PORT}/tcp"
|
2021-12-16 22:42:34 +00:00
|
|
|
restart: unless-stopped
|