- Add Gitea Actions workflow for automated build & deploy - Add K8s manifests: webui, travel-svc, medicine-svc, sandbox-svc - Update kustomization for localhost:5000 registry - Add ingress for gooseek.ru and api.gooseek.ru - Learning cabinet with onboarding, courses, sandbox integration - Medicine service with symptom analysis and doctor matching - Travel service with itinerary planning - Server setup scripts (NVIDIA/CUDA, K3s, Gitea runner) Made-with: Cursor
466 lines
10 KiB
YAML
466 lines
10 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
auth-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=auth-svc
|
|
- PORT=3050
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
ports:
|
|
- "3050:3050"
|
|
depends_on:
|
|
- postgres
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3050/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- gooseek
|
|
|
|
api-gateway:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=api-gateway
|
|
- PORT=3015
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
- CHAT_SVC_URL=http://chat-svc:3005
|
|
- MASTER_AGENTS_SVC_URL=http://agent-svc:3018
|
|
- SEARCH_SVC_URL=http://search-svc:3001
|
|
- LLM_SVC_URL=http://llm-svc:3020
|
|
- SCRAPER_SVC_URL=http://scraper-svc:3021
|
|
- THREAD_SVC_URL=http://thread-svc:3027
|
|
- DISCOVER_SVC_URL=http://discover-svc:3002
|
|
- FINANCE_HEATMAP_SVC_URL=http://finance-heatmap-svc:3033
|
|
- LEARNING_SVC_URL=http://learning-svc:3034
|
|
- SANDBOX_SVC_URL=http://sandbox-svc:3036
|
|
- TRAVEL_SVC_URL=http://travel-svc:3035
|
|
- MEDICINE_SVC_URL=http://medicine-svc:3037
|
|
- ADMIN_SVC_URL=http://admin-svc:3040
|
|
- REDIS_URL=redis://redis:6379
|
|
ports:
|
|
- "3015:3015"
|
|
depends_on:
|
|
- auth-svc
|
|
- chat-svc
|
|
- agent-svc
|
|
- thread-svc
|
|
- admin-svc
|
|
- travel-svc
|
|
- medicine-svc
|
|
- redis
|
|
networks:
|
|
- gooseek
|
|
|
|
chat-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.chat-svc
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=chat-svc
|
|
- PORT=3005
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
- MASTER_AGENTS_SVC_URL=http://agent-svc:3018
|
|
- DISCOVER_SVC_URL=http://discover-svc:3002
|
|
ports:
|
|
- "3005:3005"
|
|
depends_on:
|
|
- agent-svc
|
|
- discover-svc
|
|
networks:
|
|
- gooseek
|
|
|
|
agent-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.agent-svc
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=agent-svc
|
|
- PORT=3018
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
- SEARXNG_URL=http://searxng:8080
|
|
- DISCOVER_SVC_URL=http://discover-svc:3002
|
|
- CRAWL4AI_URL=http://crawl4ai:11235
|
|
- TRAVEL_SVC_URL=http://travel-svc:3035
|
|
ports:
|
|
- "3018:3018"
|
|
depends_on:
|
|
- search-svc
|
|
- discover-svc
|
|
- travel-svc
|
|
- searxng
|
|
- crawl4ai
|
|
networks:
|
|
- gooseek
|
|
|
|
search-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.search-svc
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=search-svc
|
|
- PORT=3001
|
|
- SEARXNG_URL=http://searxng:8080
|
|
ports:
|
|
- "3001:3001"
|
|
depends_on:
|
|
- searxng
|
|
networks:
|
|
- gooseek
|
|
|
|
llm-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=llm-svc
|
|
- PORT=3020
|
|
ports:
|
|
- "3020:3020"
|
|
networks:
|
|
- gooseek
|
|
|
|
scraper-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=scraper-svc
|
|
- PORT=3021
|
|
- CRAWL4AI_URL=http://crawl4ai:11235
|
|
ports:
|
|
- "3021:3021"
|
|
networks:
|
|
- gooseek
|
|
|
|
discover-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.discover-svc
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=discover-svc
|
|
- PORT=3002
|
|
- SEARXNG_URL=http://searxng:8080
|
|
- REDIS_URL=redis://redis:6379
|
|
- DATABASE_URL=postgres://gooseek:gooseek@postgres:5432/gooseek?sslmode=disable
|
|
ports:
|
|
- "3002:3002"
|
|
depends_on:
|
|
- searxng
|
|
- postgres
|
|
- redis
|
|
networks:
|
|
- gooseek
|
|
|
|
collection-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=collection-svc
|
|
- PORT=3025
|
|
- DATABASE_URL=postgres://gooseek:gooseek@postgres:5432/gooseek?sslmode=disable
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
ports:
|
|
- "3025:3025"
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- gooseek
|
|
|
|
file-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=file-svc
|
|
- PORT=3026
|
|
- DATABASE_URL=postgres://gooseek:gooseek@postgres:5432/gooseek?sslmode=disable
|
|
- FILE_STORAGE_PATH=/data/files
|
|
ports:
|
|
- "3026:3026"
|
|
volumes:
|
|
- file-storage:/data/files
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- gooseek
|
|
|
|
thread-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=thread-svc
|
|
- PORT=3027
|
|
- DATABASE_URL=postgres://gooseek:gooseek@postgres:5432/gooseek?sslmode=disable
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
ports:
|
|
- "3027:3027"
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- gooseek
|
|
|
|
labs-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=labs-svc
|
|
- PORT=3031
|
|
- LABS_SVC_PORT=3031
|
|
ports:
|
|
- "3031:3031"
|
|
networks:
|
|
- gooseek
|
|
|
|
podcast-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=podcast-svc
|
|
- PORT=3032
|
|
- PODCAST_SVC_PORT=3032
|
|
ports:
|
|
- "3032:3032"
|
|
volumes:
|
|
- podcasts:/data/podcasts
|
|
networks:
|
|
- gooseek
|
|
|
|
finance-heatmap-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=finance-heatmap-svc
|
|
- PORT=3033
|
|
- REDIS_URL=redis://redis:6379
|
|
ports:
|
|
- "3033:3033"
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- gooseek
|
|
|
|
learning-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=learning-svc
|
|
- PORT=3034
|
|
- LEARNING_SVC_PORT=3034
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
- DATABASE_URL=postgres://gooseek:gooseek@postgres:5432/gooseek?sslmode=disable
|
|
ports:
|
|
- "3034:3034"
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- gooseek
|
|
|
|
sandbox-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=sandbox-svc
|
|
- PORT=3036
|
|
- SANDBOX_SVC_PORT=3036
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
- DATABASE_URL=postgres://gooseek:gooseek@postgres:5432/gooseek?sslmode=disable
|
|
- OPENSANDBOX_URL=http://opensandbox-server:8080
|
|
ports:
|
|
- "3036:3036"
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- gooseek
|
|
|
|
travel-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=travel-svc
|
|
- PORT=3035
|
|
- DATABASE_URL=postgres://gooseek:gooseek@postgres:5432/gooseek?sslmode=disable
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
- USE_RUSSIAN_APIS=true
|
|
- LLM_PROVIDER=timeweb
|
|
ports:
|
|
- "3035:3035"
|
|
depends_on:
|
|
- postgres
|
|
- auth-svc
|
|
networks:
|
|
- gooseek
|
|
|
|
medicine-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=medicine-svc
|
|
- PORT=3037
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
- SEARXNG_URL=http://searxng:8080
|
|
- LLM_PROVIDER=timeweb
|
|
ports:
|
|
- "3037:3037"
|
|
depends_on:
|
|
- auth-svc
|
|
- searxng
|
|
networks:
|
|
- gooseek
|
|
|
|
admin-svc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: deploy/docker/Dockerfile.all
|
|
env_file: ../../../.env
|
|
environment:
|
|
- SERVICE=admin-svc
|
|
- PORT=3040
|
|
- ADMIN_SVC_PORT=3040
|
|
- DATABASE_URL=postgres://gooseek:gooseek@postgres:5432/gooseek?sslmode=disable
|
|
- AUTH_SVC_URL=http://auth-svc:3050
|
|
- MINIO_ENDPOINT=minio:9000
|
|
- MINIO_ACCESS_KEY=minioadmin
|
|
- MINIO_SECRET_KEY=minioadmin
|
|
- MINIO_BUCKET=gooseek
|
|
- MINIO_USE_SSL=false
|
|
ports:
|
|
- "3040:3040"
|
|
depends_on:
|
|
- postgres
|
|
- minio
|
|
networks:
|
|
- gooseek
|
|
|
|
minio:
|
|
image: minio/minio:latest
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
- MINIO_ROOT_USER=minioadmin
|
|
- MINIO_ROOT_PASSWORD=minioadmin
|
|
volumes:
|
|
- minio-data:/data
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- gooseek
|
|
|
|
webui:
|
|
build:
|
|
context: ../../webui
|
|
dockerfile: Dockerfile
|
|
args:
|
|
NEXT_PUBLIC_ENABLED_ROUTES: ${NEXT_PUBLIC_ENABLED_ROUTES:-}
|
|
NEXT_PUBLIC_TWOGIS_API_KEY: ${NEXT_PUBLIC_TWOGIS_API_KEY:-}
|
|
env_file: ../../../.env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- API_URL=http://api-gateway:3015
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- api-gateway
|
|
networks:
|
|
- gooseek
|
|
restart: unless-stopped
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
- POSTGRES_USER=gooseek
|
|
- POSTGRES_PASSWORD=gooseek
|
|
- POSTGRES_DB=gooseek
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U gooseek"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- gooseek
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
|
|
volumes:
|
|
- redis-data:/data
|
|
ports:
|
|
- "6379:6379"
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- gooseek
|
|
|
|
searxng:
|
|
image: searxng/searxng:latest
|
|
volumes:
|
|
- ./searxng:/etc/searxng
|
|
environment:
|
|
- SEARXNG_BASE_URL=http://localhost:8080
|
|
ports:
|
|
- "8080:8080"
|
|
networks:
|
|
- gooseek
|
|
|
|
crawl4ai:
|
|
image: unclecode/crawl4ai:latest
|
|
ports:
|
|
- "11235:11235"
|
|
networks:
|
|
- gooseek
|
|
|
|
networks:
|
|
gooseek:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres-data:
|
|
redis-data:
|
|
file-storage:
|
|
podcasts:
|
|
minio-data:
|