/
SaveLink
/
SaveTest
Обзор
Документация
Войти
/
SaveLink
/
SaveTest
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docker-compose.minimal.yml
185 строк
5 KB
ivan kuzin
Свежая конфигурация для версии 1.3.0
06 июл 2026, 09:47
06 июл 2026, 09:47
886d0b3
Код
Авторство
О чём код?
# Минимальная конфигурация Docker Compose # Для быстрого старта с минимальными настройками services: postgres: image: postgres:15 restart: unless-stopped environment: POSTGRES_DB: savetest_db POSTGRES_USER: savetest_user POSTGRES_PASSWORD: savetest_password POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=en_US.UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U savetest_user -d savetest_db"] interval: 10s timeout: 5s retries: 5 networks: - savetest-network allure-service: image: cr.yandex/crp8hln0vgikkl8djavt/save-test/allure-service:main container_name: allure-service restart: unless-stopped ports: - "3001:3001" volumes: - allure_storage:/allure-storage environment: - PORT=3001 - STORAGE_PATH=/allure-storage - NODE_ENV=production - REDIS_URL=redis://redis:6379/0 - BACKEND_URL=http://backend:8000 depends_on: redis: condition: service_healthy networks: - savetest-network healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3001/health"] interval: 30s timeout: 10s retries: 3 start_period: 10s backend: image: cr.yandex/crp8hln0vgikkl8djavt/save-test/backend:main restart: unless-stopped ports: - "8001:8000" environment: - DATABASE_URL=postgresql://savetest_user:savetest_password@postgres:5432/savetest_db - REDIS_URL=redis://redis:6379/0 - SECRET_KEY=your-super-secret-key-change-in-production - DEBUG=False - ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8080,http://127.0.0.1:8080 - UVICORN_WORKERS=4 - ALLURE_SERVICE_URL=http://allure-service:3001 - ALLURE_STORAGE_PATH=/allure-storage - LIVEKIT_URL= - LIVEKIT_WS_URL= - LIVEKIT_API_KEY= - LIVEKIT_API_SECRET= - CALL_CHAT_UPLOAD_DIR=/app/call_chat_uploads volumes: - git_repos:/app/git_repos - avatars_data:/app/avatars - project_avatars_data:/app/project_avatars - project_report_assets_data:/app/project_report_assets - reports_data:/app/reports - result_attachments_data:/app/result_attachments - call_chat_uploads_data:/app/call_chat_uploads - wiki_sites_data:/app/wiki_sites - logs_data:/app/logs - app_data:/app/app/__data__ - allure_storage:/allure-storage depends_on: postgres: condition: service_healthy redis: condition: service_healthy allure-service: condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s networks: - savetest-network redis: image: redis:7-alpine restart: unless-stopped volumes: - redis_data:/data command: redis-server --appendonly yes networks: - savetest-network healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 webhook-worker: image: cr.yandex/crp8hln0vgikkl8djavt/save-test/webhook-worker:main container_name: webhook-worker restart: unless-stopped environment: - DATABASE_URL=postgresql://savetest_user:savetest_password@postgres:5432/savetest_db - REDIS_URL=redis://redis:6379/0 - WORKER_TIMEOUT=30 - WORKER_RETRY_COUNT=2 - WORKER_RETRY_DELAY=5 - LOG_LEVEL=INFO - LOGS_DIR=/app/logs volumes: - logs_data:/app/logs depends_on: postgres: condition: service_healthy redis: condition: service_healthy networks: - savetest-network healthcheck: test: ["CMD", "python", "-c", "import sys; sys.exit(0)"] interval: 30s timeout: 10s retries: 3 start_period: 10s frontend: image: cr.yandex/crp8hln0vgikkl8djavt/save-test/frontend:main restart: unless-stopped ports: - "8080:80" depends_on: backend: condition: service_healthy networks: - savetest-network stop_grace_period: 15s healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"] interval: 30s timeout: 10s retries: 3 start_period: 10s volumes: git_repos: driver: local redis_data: driver: local avatars_data: driver: local project_avatars_data: driver: local project_report_assets_data: driver: local call_chat_uploads_data: driver: local reports_data: driver: local result_attachments_data: driver: local wiki_sites_data: driver: local logs_data: driver: local app_data: driver: local postgres_data: allure_storage: driver: local networks: savetest-network: driver: bridge