discovery container service failed to start
docker-compose.yaml
version: ‘3.5’
services:
server:
image: cortezaproject/corteza:${VERSION}
env_file: [ .env ]
depends_on: [ db ]
networks: [ internal ]
ports:
- “127.0.0.1:18080:80” # Expose the server on localhost
volumes:
- “./data/server:/data”
restart: on-failure
db:
image: postgres:13
networks: [ internal ]
restart: on-failure
healthcheck:
test: [“CMD-SHELL”, “pg_isready -U corteza”]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: corteza
POSTGRES_PASSWORD: corteza
volumes:
- ./data/db:/var/lib/postgresql/data # Persist database data
es:
image: opensearchproject/opensearch:1.3.0
restart: on-failure
networks: [ internal ]
environment:
- cluster.name=es-docker-cluster
- node.name=es
- cluster.initial_master_nodes=es
- bootstrap.memory_lock=true
- OPENSEARCH_JAVA_OPTS=-Xms8000m -Xmx8000m
- DISABLE_INSTALL_DEMO_CONFIG=true
- DISABLE_SECURITY_PLUGIN=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./data/es:/usr/share/elasticsearch/data # Persist Elasticsearch data
discovery:
image: cortezaproject/corteza-server-discovery:${VERSION}
restart: on-failure
env_file: [ .env ]
depends_on: [ es, server ]
networks: [ internal ]
ports:
- “127.0.0.1:8181:80” # Expose discovery service on localhost
networks:
internal:
driver: bridge
.env file
########################################################################################################################
General settings
DOMAIN=localhost:18080 # Local domain for the Corteza server
VERSION=2023.3
########################################################################################################################
Database connection
DB_DSN=postgres://corteza:corteza@db:5432/corteza?sslmode=disable # Local PostgreSQL connection
########################################################################################################################
Server settings
Serve Corteza webapps alongside API
HTTP_WEBAPP_ENABLED=true
HTTP_WEBAPP_LIST=admin,compose,workflow,reporter,discovery
########################################################################################################################
Server Discovery configs
DISCOVERY_ENABLED=true
DISCOVERY_DEBUG=true
DISCOVERY_CORTEZA_DOMAIN=http://localhost:18080 # Local Corteza server URL
DISCOVERY_BASE_URL=http://localhost:8181 # Local Discovery service URL
CORTEZA_SERVER_BASE_URL=http://server:80
ES_ADDRESS=http://es:9200 # Local Elasticsearch address
ES_INDEX_INTERVAL=300
HTTP_ADDR=0.0.0.0:80 # Bind HTTP service to all interfaces on port 80
Corteza Discovery indexer configuration
DISCOVERY_INDEXER_ENABLED=true
DISCOVERY_INDEXER_PRIVATE_INDEX_CLIENT_KEY=407383409556455428 # Replace with actual private key
DISCOVERY_INDEXER_PRIVATE_INDEX_CLIENT_SECRET=z0n093ftXfAjHbDT39bMcuPsUz3Uz4QtTyo36TvK79CrvK5kARt9yBGOTZlXBZRP # Replace with actual secret
Corteza Discovery searcher configuration
DISCOVERY_SEARCHER_ENABLED=true
DISCOVERY_SEARCHER_CLIENT_KEY=407383409556455428 # Replace with actual client key
DISCOVERY_SEARCHER_CLIENT_SECRET=z0n093ftXfAjHbDT39bMcuPsUz3Uz4QtTyo36TvK79CrvK5kARt9yBGOTZlXBZRP # Replace with actual client secret
DISCOVERY_SEARCHER_JWT_SECRET=dbd20d918949dba90d4804a61391806ee78d497beeae705794dc0b9e366535fc # Replace with actual JWT secret
DISCOVERY_SEARCHER_ALLOWED_ROLE=${ROLE_ALLOWED_EXAMPLE} # Replace with actual allowed role
logs for failed container
please help me to setup corteza discovery