/
mpstrkv
/
SpbTechRun
Обзор
Документация
Войти
/
mpstrkv
/
SpbTechRun
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
docker-compose.yml
91 строка
2 KB
mihailpestrikov
Initial commit: SpbTechRun recommendation system
05 дек 2025, 16:11
05 дек 2025, 16:11
8ba7137
Код
Авторство
О чём код?
services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: spbtechrun ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: pg_isready -U postgres interval: 5s timeout: 3s retries: 5 redis: image: redis:7-alpine ports: - "6379:6379" healthcheck: test: redis-cli ping interval: 5s timeout: 3s retries: 5 elasticsearch: image: elasticsearch:8.11.0 environment: - discovery.type=single-node - xpack.security.enabled=false - "ES_JAVA_OPTS=-Xms512m -Xmx512m" ports: - "9200:9200" volumes: - elasticsearch_data:/usr/share/elasticsearch/data healthcheck: test: curl -s http://localhost:9200 >/dev/null || exit 1 interval: 10s timeout: 5s retries: 6 recommendations: build: ./recommendations ports: - "8000:8000" environment: - POSTGRES_HOST=postgres - POSTGRES_PORT=5432 - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=spbtechrun - OLLAMA_URL=http://host.docker.internal:11434 - OLLAMA_MODEL=nomic-embed-text volumes: - ml_models:/app/models depends_on: postgres: condition: service_healthy frontend: build: ./frontend ports: - "3000:80" depends_on: - backend backend: build: ./backend ports: - "8080:8080" environment: - POSTGRES_HOST=postgres - REDIS_HOST=redis - ELASTIC_URL=http://elasticsearch:9200 - RECOMMENDATIONS_URL=http://recommendations:8000 depends_on: postgres: condition: service_healthy redis: condition: service_healthy elasticsearch: condition: service_healthy recommendations: condition: service_started volumes: postgres_data: elasticsearch_data: ml_models: