/
oldzoomer
/
nodehistj
Обзор
Документация
Войти
/
oldzoomer
/
nodehistj
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
compose-dev.yml
196 строк
5 KB
Egor Gavrilov
Migrate to GraalVM
07 авг 2026, 08:36
07 авг 2026, 08:36
6b91729
Код
Авторство
О чём код?
services: minio: image: minio/minio networks: - nodehistj volumes: - minio_storage:/data command: server --console-address ":9001" /data healthcheck: test: mc ready local || exit 1 start_period: 30s interval: 5s timeout: 10s retries: 5 restart: unless-stopped environment: - MINIO_ROOT_USER=${S3_USER:-user} - MINIO_ROOT_PASSWORD=${S3_PASSWORD:-password} redis: image: redis:alpine networks: - nodehistj healthcheck: test: redis-cli ping || exit 1 start_period: 30s interval: 5s timeout: 10s retries: 5 restart: unless-stopped redpanda: image: redpandadata/redpanda restart: unless-stopped hostname: redpanda networks: - nodehistj command: - redpanda - start - --kafka-addr - PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 - --advertise-kafka-addr - PLAINTEXT://redpanda:29092,OUTSIDE://redpanda:9092 volumes: - redpanda_dev_data:/var/lib/redpanda/data healthcheck: test: ["CMD", "rpk", "cluster", "health"] start_period: 20s interval: 10s timeout: 5s retries: 3 postgres: image: postgres:18-alpine networks: - nodehistj restart: unless-stopped environment: - POSTGRES_USER=${POSTGRES_USER:-user} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password} volumes: - postgres_storage:/var/lib/postgresql - ./pgsql:/docker-entrypoint-initdb.d/ healthcheck: test: pg_isready -U postgres || exit 1 start_period: 30s interval: 5s timeout: 10s retries: 5 # Сервис загрузки файлов nodelist с FTP # Основные зависимости: MinIO, Kafka # Бинарник: GraalVM native image на Distroless java-base nodehistj-download-nodelists: image: gavrilovegor519/nodehistj-download-nodelists:master build: context: . dockerfile: Dockerfile args: SERVICE_NAME: nodehistj-download-nodelists SKIP_TESTS: "true" networks: - nodehistj extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped mem_limit: 512m mem_reservation: 128m environment: - KAFKA_BOOTSTRAP_SERVER=redpanda:9092 - S3_URL=http://minio:9000 - S3_USER=${S3_USER:-user} - S3_PASSWORD=${S3_PASSWORD:-password} - S3_BUCKET=nodehistj - LOG_LEVEL=${LOG_LEVEL:-DEBUG} - FTP_DOWNLOAD_FROM_YEAR=${FTP_DOWNLOAD_FROM_YEAR:-2025} - FTP_HOST=${FTP_HOST:-wfido.ru} - FTP_PATH=${FTP_PATH:-/nodehist/} - FTP_USER=${FTP_USER:-anonymous} - FTP_PASSWORD=${FTP_PASSWORD:-anonymous@} depends_on: minio: condition: service_healthy redpanda: condition: service_healthy # Сервис работы с историческими данными nodelist # Основные зависимости: MinIO, Kafka, PostgreSQL, Redis # Бинарник: GraalVM native image на Distroless java-base nodehistj-historic-nodelists: image: gavrilovegor519/nodehistj-historic-nodelists:master build: context: . dockerfile: Dockerfile args: SERVICE_NAME: nodehistj-historic-nodelists SKIP_TESTS: "true" secrets: - github_username - github_token networks: - nodehistj ports: - "8081:8080" restart: unless-stopped mem_limit: 512m mem_reservation: 128m environment: - KAFKA_BOOTSTRAP_SERVER=redpanda:9092 - REDIS_HOST=redis - S3_URL=http://minio:9000 - S3_USER=${S3_USER:-user} - S3_PASSWORD=${S3_PASSWORD:-password} - S3_BUCKET=nodehistj - POSTGRES_HOST=postgres:5432 depends_on: minio: condition: service_healthy redpanda: condition: service_healthy postgres: condition: service_healthy redis: condition: service_healthy # Сервис сравнения исторических и актуальных данных # Основные зависимости: Kafka, PostgreSQL, Redis # Бинарник: GraalVM native image на Distroless java-base nodehistj-history-diff: image: gavrilovegor519/nodehistj-history-diff:master build: context: . dockerfile: Dockerfile args: SERVICE_NAME: nodehistj-history-diff SKIP_TESTS: "true" secrets: - github_username - github_token networks: - nodehistj ports: - "8083:8080" restart: unless-stopped mem_limit: 512m mem_reservation: 128m environment: - KAFKA_BOOTSTRAP_SERVER=redpanda:9092 - REDIS_HOST=redis - S3_URL=http://minio:9000 - S3_USER=${S3_USER:-user} - S3_PASSWORD=${S3_PASSWORD:-password} - S3_BUCKET=nodehistj - POSTGRES_HOST=postgres:5432 depends_on: minio: condition: service_healthy redpanda: condition: service_healthy postgres: condition: service_healthy redis: condition: service_healthy secrets: github_username: environment: GITHUB_USERNAME github_token: environment: GITHUB_TOKEN networks: nodehistj: driver: bridge volumes: minio_storage: postgres_storage: redpanda_dev_data: