From 135e7ba94b5091994b6fe3aef36c582eb637e046 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 8 Dec 2023 14:35:07 +0000 Subject: [PATCH 1/4] Update docker-compose.yaml to use our CouchDB image instead of IBM's. --- hosting/docker-compose.yaml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/hosting/docker-compose.yaml b/hosting/docker-compose.yaml index 8f66d211f7..a9b0cc3494 100644 --- a/hosting/docker-compose.yaml +++ b/hosting/docker-compose.yaml @@ -98,26 +98,15 @@ services: couchdb-service: restart: unless-stopped - image: ibmcom/couchdb3 + image: budibase/couchdb:v3.2.1 + pull_policy: always environment: - COUCHDB_PASSWORD=${COUCH_DB_PASSWORD} - COUCHDB_USER=${COUCH_DB_USER} + - TARGETBUILD=docker-compose volumes: - couchdb3_data:/opt/couchdb/data - couch-init: - image: curlimages/curl - environment: - PUT_CALL: "curl -u ${COUCH_DB_USER}:${COUCH_DB_PASSWORD} -X PUT couchdb-service:5984" - depends_on: - - couchdb-service - command: - [ - "sh", - "-c", - "sleep 10 && $${PUT_CALL}/_users && $${PUT_CALL}/_replicator; fg;", - ] - redis-service: restart: unless-stopped image: redis From 17a5286f2ca0f4d090edc3d577d8156c7019adb4 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 8 Dec 2023 15:18:42 +0000 Subject: [PATCH 2/4] Remove last reference to couch-init container. --- hosting/docker-compose.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/hosting/docker-compose.yaml b/hosting/docker-compose.yaml index a9b0cc3494..dfd8e32731 100644 --- a/hosting/docker-compose.yaml +++ b/hosting/docker-compose.yaml @@ -57,7 +57,6 @@ services: depends_on: - redis-service - minio-service - - couch-init minio-service: restart: unless-stopped From 093825e7a023bb1216ac6a3a41891d9c58cc4a76 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 8 Dec 2023 15:40:53 +0000 Subject: [PATCH 3/4] Don't hardcode CouchDB image tag. --- hosting/docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/docker-compose.yaml b/hosting/docker-compose.yaml index dfd8e32731..5c347e096e 100644 --- a/hosting/docker-compose.yaml +++ b/hosting/docker-compose.yaml @@ -97,7 +97,7 @@ services: couchdb-service: restart: unless-stopped - image: budibase/couchdb:v3.2.1 + image: budibase/couchdb pull_policy: always environment: - COUCHDB_PASSWORD=${COUCH_DB_PASSWORD} From 123a08ec277a3db57aa10c551e36822463a489e0 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 8 Dec 2023 15:48:24 +0000 Subject: [PATCH 4/4] Fix MinIO healthcheck. --- hosting/docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/docker-compose.yaml b/hosting/docker-compose.yaml index 5c347e096e..7803916069 100644 --- a/hosting/docker-compose.yaml +++ b/hosting/docker-compose.yaml @@ -69,7 +69,7 @@ services: MINIO_BROWSER: "off" command: server /data --console-address ":9001" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] + test: "timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1" interval: 30s timeout: 20s retries: 3