refactor progress
This commit is contained in:
59
fluxer_integration/docker/compose.yaml
Normal file
59
fluxer_integration/docker/compose.yaml
Normal file
@@ -0,0 +1,59 @@
|
||||
services:
|
||||
fluxer_server:
|
||||
build:
|
||||
context: /root/fluxer
|
||||
dockerfile: fluxer_server/Dockerfile.dev
|
||||
working_dir: /workspace/fluxer_server
|
||||
command: >
|
||||
sh -lc "corepack enable pnpm && pnpm install --frozen-lockfile && pnpm start"
|
||||
ports:
|
||||
- '18088:8088'
|
||||
environment:
|
||||
- FLUXER_CONFIG=/workspace/config/config.json
|
||||
- NODE_ENV=development
|
||||
- FLUXER_CONFIG__ENV=development
|
||||
volumes:
|
||||
- /root/fluxer/packages:/workspace/packages
|
||||
- /root/fluxer/pnpm-workspace.yaml:/workspace/pnpm-workspace.yaml:ro
|
||||
- /root/fluxer/pnpm-lock.yaml:/workspace/pnpm-lock.yaml:ro
|
||||
- /root/fluxer/package.json:/workspace/package.json:ro
|
||||
- /root/fluxer/tsconfigs:/workspace/tsconfigs:ro
|
||||
- /root/fluxer/patches:/workspace/patches:ro
|
||||
- corepack_cache:/root/.cache/node/corepack
|
||||
- /root/fluxer/fluxer_integration/docker/config.json:/workspace/config/config.json:ro
|
||||
- integration_node_modules:/workspace/node_modules
|
||||
- /root/fluxer/fluxer_server:/workspace/fluxer_server
|
||||
- /root/fluxer/fluxer_media_proxy/data/model.onnx:/workspace/fluxer_server/data/model.onnx:ro
|
||||
networks:
|
||||
- integration
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
livekit:
|
||||
condition: service_healthy
|
||||
|
||||
livekit:
|
||||
image: livekit/livekit-server:latest
|
||||
command: --config /etc/livekit.yaml --dev
|
||||
volumes:
|
||||
- /root/fluxer/fluxer_integration/docker/livekit.yaml:/etc/livekit.yaml:ro
|
||||
ports:
|
||||
- '17880:7880'
|
||||
- '17882:7882/udp'
|
||||
- '17999:7999/udp'
|
||||
networks:
|
||||
- integration
|
||||
restart: on-failure
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'wget --no-verbose --tries=1 --spider http://localhost:7880 || exit 1']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 5s
|
||||
|
||||
networks:
|
||||
integration:
|
||||
name: fluxer-integration-isolated
|
||||
|
||||
volumes:
|
||||
corepack_cache:
|
||||
integration_node_modules:
|
||||
74
fluxer_integration/docker/config.json
Normal file
74
fluxer_integration/docker/config.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"$schema": "../../packages/config/src/ConfigSchema.json",
|
||||
"env": "development",
|
||||
"domain": {
|
||||
"base_domain": "localhost"
|
||||
},
|
||||
"database": {
|
||||
"backend": "sqlite",
|
||||
"sqlite_path": "./data/integration.db"
|
||||
},
|
||||
"s3": {
|
||||
"access_key_id": "integration-test-access-key",
|
||||
"secret_access_key": "integration-test-secret-key"
|
||||
},
|
||||
"services": {
|
||||
"media_proxy": {
|
||||
"secret_key": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
|
||||
},
|
||||
"admin": {
|
||||
"secret_key_base": "abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789",
|
||||
"oauth_client_secret": "fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210"
|
||||
},
|
||||
"gateway": {
|
||||
"port": 8080,
|
||||
"api_host": "http://127.0.0.1:8088/api",
|
||||
"admin_reload_secret": "deadbeef0123456789abcdef0123456789abcdef0123456789abcdef01234567",
|
||||
"media_proxy_endpoint": "http://localhost:8088/media"
|
||||
},
|
||||
"server": {
|
||||
"port": 8088
|
||||
}
|
||||
},
|
||||
"gateway": {
|
||||
"rpc_endpoint": "http://127.0.0.1:8081",
|
||||
"rpc_secret": "cafebabe0123456789abcdef0123456789abcdef0123456789abcdef01234567"
|
||||
},
|
||||
"auth": {
|
||||
"sudo_mode_secret": "c0ffee000123456789abcdef0123456789abcdef0123456789abcdef01234567",
|
||||
"connection_initiation_secret": "f00dbabe0123456789abcdef0123456789abcdef0123456789abcdef01234567",
|
||||
"vapid": {
|
||||
"public_key": "face0000123456789abcdef0123456789abcdef0123456789abcdef0123456789",
|
||||
"private_key": "beef0000123456789abcdef0123456789abcdef0123456789abcdef0123456789"
|
||||
},
|
||||
"bluesky": {
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"dev": {
|
||||
"disable_rate_limits": true,
|
||||
"relax_registration_rate_limits": true,
|
||||
"test_mode_enabled": true
|
||||
},
|
||||
"integrations": {
|
||||
"voice": {
|
||||
"enabled": true,
|
||||
"api_key": "devkey",
|
||||
"api_secret": "devsecret",
|
||||
"url": "ws://livekit:7880",
|
||||
"webhook_url": "",
|
||||
"default_region": {
|
||||
"id": "default",
|
||||
"name": "Default",
|
||||
"emoji": "🌐",
|
||||
"latitude": 0.0,
|
||||
"longitude": 0.0
|
||||
}
|
||||
},
|
||||
"cloudflare": {
|
||||
"purge_enabled": false,
|
||||
"zone_id": "",
|
||||
"api_token": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
19
fluxer_integration/docker/livekit.yaml
Normal file
19
fluxer_integration/docker/livekit.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
port: 7880
|
||||
|
||||
keys:
|
||||
'devkey': 'devsecret'
|
||||
|
||||
rtc:
|
||||
tcp_port: 7881
|
||||
|
||||
webhook:
|
||||
api_key: 'devkey'
|
||||
urls:
|
||||
- ''
|
||||
|
||||
room:
|
||||
auto_create: true
|
||||
max_participants: 100
|
||||
empty_timeout: 300
|
||||
|
||||
development: true
|
||||
Reference in New Issue
Block a user