mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-09 11:04:36 +00:00
38 lines
788 B
YAML
38 lines
788 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
routstr:
|
|
build: .
|
|
volumes:
|
|
- .:/app
|
|
- ./logs:/app/logs
|
|
- tor-data:/var/lib/tor:ro
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- TOR_PROXY_URL=socks5://tor:9050
|
|
ports:
|
|
- 8000:8000
|
|
extra_hosts: # Needed to access locally running models
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
tor:
|
|
image: ghcr.io/hundehausen/tor-hidden-service:latest
|
|
volumes:
|
|
- tor-data:/var/lib/tor
|
|
environment:
|
|
# Format: HS_<NAME>=<TARGET_HOST>:<TARGET_PORT>:<VIRTUAL_PORT>
|
|
- HS_ROUTER=routstr:8000:80
|
|
depends_on:
|
|
- routstr
|
|
|
|
# Legacy service definition to ensure cleanup of old container
|
|
router:
|
|
image: alpine:latest
|
|
command: /bin/true
|
|
profiles:
|
|
- cleanup
|
|
|
|
volumes:
|
|
tor-data:
|