184 lines
5.3 KiB
YAML
184 lines
5.3 KiB
YAML
x-common-variables: &shared_vars
|
|
CONFIG_SERVICE: ${CONFIG_SERVICE}
|
|
PUBSUB_SETTINGS_CONFIG_KEY: ${PUBSUB_SETTINGS_CONFIG_KEY}
|
|
CACHE_SETTINGS_CONFIG_KEY: ${CACHE_SETTINGS_CONFIG_KEY}
|
|
|
|
|
|
services:
|
|
# =============== C O I N B A S E
|
|
coinbase_mdgw:
|
|
image: ${CVTT_DOCKER_REGISTRY}/md_gateway:${CVTT_VERSION}
|
|
container_name: coinbase_mdgw
|
|
pull_policy: always
|
|
restart: unless-stopped
|
|
user: ${CVTT_USER:-1001:1001}
|
|
|
|
environment:
|
|
<<: *shared_vars
|
|
|
|
CONFIG_FILE: ${COINBASE_CONFIG_FILE}
|
|
MDGW_CREDS_FILE: ${CREDS_FILE}
|
|
MDGW_LOG_FILE: ${COINBASE_MDGW_LOG_FILE}
|
|
MDGW_ADD_ARGS: ${COINBASE_MDGW_ADD_ARGS:-}
|
|
|
|
MDGW_DEBUG: ${COINBASE_MDGW_DEBUG}
|
|
MDGW_DEBUG_WAIT: ${COINBASE_MDGW_DEBUG_WAIT}
|
|
ports:
|
|
- ${COINBASE_MDGW_DEBUG_PORT}:5678
|
|
volumes:
|
|
- ./config:/config
|
|
- ./logs:/logs
|
|
depends_on:
|
|
- redis
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/checkhealth.sh"]
|
|
interval: 15s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 15s
|
|
|
|
coinbase_ohlcv_rec:
|
|
image: ${CVTT_DOCKER_REGISTRY}/ohlcv_recorder:${CVTT_VERSION}
|
|
container_name: coinbase_ohlcv_rec
|
|
pull_policy: always
|
|
restart: unless-stopped
|
|
user: ${CVTT_USER:-1001:1001}
|
|
|
|
environment:
|
|
<<: *shared_vars
|
|
|
|
CONFIG_FILE: ${COINBASE_CONFIG_FILE}
|
|
OHLCV_REC_LOG_FILE: ${COINBASE_OHLCV_REC_LOG_FILE}
|
|
OHLCV_REC_ADD_ARGS: ${COINBASE_OHLCV_REC_ADD_ARGS:-}
|
|
|
|
OHLCV_REC_DEBUG: ${COINBASE_OHLCV_REC_DEBUG}
|
|
OHLCV_REC_DEBUG_WAIT: ${COINBASE_OHLCV_REC_DEBUG_WAIT}
|
|
|
|
ports:
|
|
- ${COINBASE_OHLCV_REC_DEBUG_PORT}:5678
|
|
|
|
volumes:
|
|
- ./config:/config
|
|
- ./logs:/logs
|
|
depends_on:
|
|
coinbase_mdgw:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
timescaledb:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/checkhealth.sh"]
|
|
interval: 15s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 15s
|
|
|
|
# =============== B N B S P O T
|
|
bnbspot_mdgw:
|
|
image: ${CVTT_DOCKER_REGISTRY}/md_gateway:${CVTT_VERSION}
|
|
container_name: bnbspot_mdgw
|
|
pull_policy: always
|
|
restart: unless-stopped
|
|
user: ${CVTT_USER:-1001:1001}
|
|
|
|
environment:
|
|
<<: *shared_vars
|
|
|
|
CONFIG_FILE: ${BNBSPOT_CONFIG_FILE}
|
|
MDGW_CREDS_FILE: ${CREDS_FILE}
|
|
MDGW_LOG_FILE: ${BNBSPOT_MDGW_LOG_FILE}
|
|
MDGW_ADD_ARGS: ${BNBSPOT_MDGW_ADD_ARGS:-}
|
|
|
|
MDGW_DEBUG: ${BNBSPOT_MDGW_DEBUG}
|
|
MDGW_DEBUG_WAIT: ${BNBSPOT_MDGW_DEBUG_WAIT}
|
|
ports:
|
|
- ${BNBSPOT_MDGW_DEBUG_PORT}:5678
|
|
|
|
volumes:
|
|
- ./config:/config
|
|
- ./logs:/logs
|
|
depends_on:
|
|
- redis
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/checkhealth.sh"]
|
|
interval: 15s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 15s
|
|
|
|
bnbspot_ohlcv_rec:
|
|
image: ${CVTT_DOCKER_REGISTRY}/ohlcv_recorder:${CVTT_VERSION}
|
|
container_name: bnbspot_ohlcv_rec
|
|
pull_policy: always
|
|
restart: unless-stopped
|
|
user: ${CVTT_USER:-1001:1001}
|
|
|
|
environment:
|
|
<<: *shared_vars
|
|
|
|
CONFIG_FILE: ${BNBSPOT_CONFIG_FILE}
|
|
OHLCV_REC_LOG_FILE: ${BNBSPOT_OHLCV_REC_LOG_FILE}
|
|
OHLCV_REC_ADD_ARGS: ${BNBSPOT_OHLCV_REC_ADD_ARGS:-}
|
|
|
|
OHLCV_REC_DEBUG: ${BNBSPOT_OHLCV_REC_DEBUG}
|
|
OHLCV_REC_DEBUG_WAIT: ${BNBSPOT_OHLCV_REC_DEBUG_WAIT}
|
|
|
|
ports:
|
|
- ${BNBSPOT_OHLCV_REC_DEBUG_PORT}:5678
|
|
|
|
volumes:
|
|
- ./config:/config
|
|
- ./logs:/logs
|
|
depends_on:
|
|
bnbspot_mdgw:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
timescaledb:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/checkhealth.sh"]
|
|
interval: 15s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 15s
|
|
|
|
# ------------- System Services
|
|
redis:
|
|
image: redis:latest
|
|
container_name: cvtt-redis-md_rec
|
|
restart: unless-stopped
|
|
ports:
|
|
- "26379:6379"
|
|
volumes:
|
|
- ./data/redis:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 5s
|
|
|
|
timescaledb:
|
|
image: ${CVTT_DOCKER_REGISTRY}/cvtt-timescale-db:${CVTT_VERSION}
|
|
container_name: ${TIMESCALE_CONTAINER_NAME}
|
|
restart: unless-stopped
|
|
pull_policy: always
|
|
# ----
|
|
environment:
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_DB=postgres
|
|
ports:
|
|
- "${TIMESCALE_PORT}:5432"
|
|
volumes:
|
|
- ./data/timescale-db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -h localhost -p 5432"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 15s
|
|
|