Coding Global Background
Coding Global

Docker Issue in Spring Boot with Couchbase

Archiviert 7 months ago
2 Nachrichten
1 Mitglieder
a year ago
In Discord öffnen
D
direct_x_34
Copy Paster!

I try to run my app as Spring Boot with Couchbase on Docker Here is my docker-compose.yml ``` version: '3.9' services: couchbase: image: couchbase:latest container_name: couchbase ports: - 8091:8091 - 8092:8092 - 8093:8093 - 8094:8094 - 11210:11210 environment: COUCHBASE_ADMINISTRATOR_USERNAME: ${COUCHBASE_USERNAME:-Administrator} COUCHBASE_ADMINISTRATOR_PASSWORD: ${COUCHBASE_PASSWORD:-123456} COUCHBASE_BUCKET: ${COUCHBASE_BUCKET:-todo_list} COUCHBASE_AUTO_INDEX: true volumes: - ~/couchbase/node1:/opt/couchbase/var healthcheck: test: [ "CMD", "curl", "-f", "http://localhost:8091/ui/index.html" ] interval: 30s timeout: 10s retries: 5 networks: - my_network todowithcouchbase: build: . container_name: todowithcouchbase ports: - 2323:2323 depends_on: couchbase: condition: service_healthy environment: COUCHBASE_BUCKET: ${COUCHBASE_BUCKET:-todo_list} COUCHBASE_USER: ${COUCHBASE_USERNAME:-Administrator} COUCHBASE_PASSWORD: ${COUCHBASE_PASSWORD:-123456} COUCHBASE_PORT: 8091 COUCHBASE_HOST: "couchbase" networks: - my_network networks: my_network: driver: bridge ``` I already install couchbase in my local computer. I got this error shown below ``` This is expected if the there is no DNS SRV record associated with the hostname in the connection string. Will now try to bootstrap directly from the given hostname. To suppress this message, specify an IP address instead of a hostname (for example: 127.0.0.1 instead of localhost), specify more than one hostname, or set the `io.enableDnsSrv` client setting to false. ``` How can I fix it?

Antworten (2)