fix(docker-compose): remove unnecessary blank lines for cleaner formatting

This commit is contained in:
rE-Bo0t.bx1
2025-11-06 01:15:04 +08:00
parent 297d4fec87
commit f972c40f48

View File

@@ -5,16 +5,16 @@ services:
image: ghcr.io/r3bo0tbx1/onion-relay:latest
container_name: guard-relay
restart: unless-stopped
# Use host network for dual-stack IPv4/IPv6 support
network_mode: host
# Mount your configuration file (read-only)
volumes:
- ./relay.conf:/etc/tor/torrc:ro
- tor-data:/var/lib/tor
- tor-logs:/var/log/tor
# Health check
healthcheck:
test: ["CMD", "tor", "--verify-config", "-f", "/etc/tor/torrc"]
@@ -22,7 +22,7 @@ services:
timeout: 15s
start_period: 30s
retries: 3
# Resource limits (adjust based on your bandwidth)
deploy:
resources:
@@ -32,7 +32,7 @@ services:
reservations:
cpus: '1.0'
memory: 512M
# Labels for organization
labels:
com.example.service: "tor-guard-relay"
@@ -46,4 +46,4 @@ volumes:
# Example configuration file (relay.conf):
# Create a file named 'relay.conf' in the same directory with your Tor settings
# See: https://github.com/r3bo0tbx1/tor-guard-relay#%EF%B8%8F-usage-guide
# See: https://github.com/r3bo0tbx1/tor-guard-relay#-usage-guide