-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.tor-only.yml
More file actions
39 lines (32 loc) · 1.37 KB
/
docker-compose.tor-only.yml
File metadata and controls
39 lines (32 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# ============================================================================
# Redd-Archiver Tor-Only Docker Compose Overrides
# ============================================================================
# This file configures Tor-only mode (no clearnet access)
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.tor-only.yml --profile tor up -d
#
# Result:
# - Archive accessible ONLY via .onion address
# - Nginx ports not exposed to host (clearnet blocked)
# - Maximum privacy deployment
# ============================================================================
version: '3.8'
services:
nginx:
# Use standard HTTP configuration (Tor provides encryption)
volumes:
- ${OUTPUT_PATH:-./output}:/usr/share/nginx/html:ro
# Use HTTP config (not HTTPS - Tor doesn't need SSL)
- ./docker/nginx/nginx.conf.http:/etc/nginx/nginx.conf:ro
# Remove certbot volumes (not needed for Tor-only)
# CRITICAL: Remove host port mappings (blocks clearnet access)
# Nginx only accessible from Tor container via Docker network
# This provides maximum privacy - archive not exposed to internet
ports: []
# Nginx still listens on port 80 internally for Tor traffic
# Just not mapped to host (docker network access only)
# Disable certbot in Tor-only mode (not needed without HTTPS)
certbot:
profiles:
- disabled