discovery service
This commit is contained in:
37
ci/prod/compose/discovery.yml
Normal file
37
ci/prod/compose/discovery.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
# Compose v2 - Discovery service
|
||||
|
||||
x-common-env: &common-env
|
||||
env_file:
|
||||
- ../env/.env.runtime
|
||||
- ../env/.env.version
|
||||
|
||||
networks:
|
||||
sendico-net:
|
||||
external: true
|
||||
name: sendico-net
|
||||
|
||||
services:
|
||||
sendico_discovery:
|
||||
<<: *common-env
|
||||
container_name: sendico-discovery
|
||||
restart: unless-stopped
|
||||
image: ${REGISTRY_URL}/discovery/service:${APP_V}
|
||||
pull_policy: always
|
||||
environment:
|
||||
NATS_URL: ${NATS_URL}
|
||||
NATS_HOST: ${NATS_HOST}
|
||||
NATS_PORT: ${NATS_PORT}
|
||||
NATS_USER: ${NATS_USER}
|
||||
NATS_PASSWORD: ${NATS_PASSWORD}
|
||||
DISCOVERY_METRICS_PORT: ${DISCOVERY_METRICS_PORT}
|
||||
command: ["--config.file", "/app/config.yml"]
|
||||
ports:
|
||||
- "0.0.0.0:${DISCOVERY_METRICS_PORT}:${DISCOVERY_METRICS_PORT}"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL","wget -qO- http://localhost:${DISCOVERY_METRICS_PORT}/health | grep -q '\"status\":\"ok\"'"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
networks:
|
||||
- sendico-net
|
||||
Reference in New Issue
Block a user