Files
sendico/ci/prod/compose/fx_oracle.yml
Stephan D ec3019c462
Some checks failed
ci/woodpecker/push/fx_ingestor Pipeline failed
ci/woodpecker/push/fx_oracle Pipeline failed
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
+ fx
2025-11-07 20:13:41 +01:00

47 lines
1.4 KiB
YAML

# Compose v2 - FX oracle
x-common-env: &common-env
env_file:
- ../env/.env.runtime
- ../env/.env.version
networks:
sendico-net:
external: true
name: sendico-net
services:
sendico_fx_oracle:
<<: *common-env
container_name: sendico-fx-oracle
restart: unless-stopped
image: ${REGISTRY_URL}/fx/oracle:${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_ORACLE_GRPC_PORT: ${FX_ORACLE_GRPC_PORT}
FX_ORACLE_METRICS_PORT: ${FX_ORACLE_METRICS_PORT}
NATS_URL: ${FX_NATS_URL}
NATS_HOST: ${NATS_HOST}
NATS_PORT: ${NATS_PORT}
NATS_USER: ${NATS_USER}
NATS_PASSWORD: ${NATS_PASSWORD}
command: ["--config.file", "/app/config.yml"]
ports:
- "0.0.0.0:${FX_ORACLE_GRPC_PORT}:50051"
- "0.0.0.0:${FX_ORACLE_METRICS_PORT}:${FX_ORACLE_METRICS_PORT}"
healthcheck:
test: ["CMD-SHELL","wget -qO- http://localhost:${FX_ORACLE_METRICS_PORT}/health | grep -q '\"status\":\"ok\"'"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
- sendico-net