# Compose v2 - FX ingestor x-common-env: &common-env env_file: - ../env/.env.runtime - ../env/.env.version networks: sendico-net: external: true name: sendico-net services: sendico_fx_ingestor: <<: *common-env container_name: sendico-fx-ingestor restart: unless-stopped image: ${REGISTRY_URL}/fx/ingestor:${APP_V} pull_policy: always environment: FX_MONGO_HOST: ${FX_MONGO_HOST} FX_MONGO_PORT: ${FX_MONGO_PORT} FX_MONGO_DATABASE: ${FX_MONGO_DATABASE} FX_MONGO_USER: ${FX_MONGO_USER} FX_MONGO_PASSWORD: ${FX_MONGO_PASSWORD} FX_MONGO_AUTH_SOURCE: ${FX_MONGO_AUTH_SOURCE} FX_MONGO_REPLICA_SET: ${FX_MONGO_REPLICA_SET} FX_INGESTOR_METRICS_PORT: ${FX_INGESTOR_METRICS_PORT} command: ["--config.file", "/app/config.yml"] ports: - "0.0.0.0:${FX_INGESTOR_METRICS_PORT}:${FX_INGESTOR_METRICS_PORT}" healthcheck: test: ["CMD-SHELL","wget -qO- http://localhost:${FX_INGESTOR_METRICS_PORT}/health | grep -q '\"status\":\"ok\"'"] interval: 30s timeout: 10s retries: 3 start_period: 60s networks: - sendico-net