mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-09 02:54:37 +00:00
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
services:
|
|
ui-builder:
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: ./ui
|
|
dockerfile: Dockerfile.build
|
|
args:
|
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://127.0.0.1:8000}
|
|
NEXT_PUBLIC_ADMIN_API_KEY: ${NEXT_PUBLIC_ADMIN_API_KEY:-}
|
|
volumes:
|
|
- ./ui_out:/output
|
|
profiles:
|
|
- ui-build
|
|
|
|
ui:
|
|
image: alpine:latest
|
|
volumes:
|
|
- ./ui_out:/output:ro
|
|
command:
|
|
[
|
|
"sh",
|
|
"-c",
|
|
'echo ''UI service - build with "docker compose --profile ui-build up ui-builder"'' && tail -f /dev/null',
|
|
]
|
|
|
|
routstr:
|
|
build: .
|
|
depends_on:
|
|
- ui
|
|
volumes:
|
|
- .:/app
|
|
- ./logs:/app/logs
|
|
- tor-data:/var/lib/tor:ro
|
|
- ./ui_out:/app/ui_out: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
|
|
|
|
volumes:
|
|
tor-data:
|