Running zenko/cloudserver locally, configured with docker-compose.yml #1779
-
|
Hi, The following is basically what I have in my docker-compose.yml file: Then the Node.js code is unable to connect to it (failing on the and the following error: I can also see the following issues from the cloudserver docker itself: I can access Is there a way to make this work? Does anyone know how and/or what is the issue? Ps. This is what I've basically posted a while back: scality/cloudserver#4688 but since then I made no progress on this one and now I landed on the same dead-end spot. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
hey you need disable SSL/TLS for localhost. |
Beta Was this translation helpful? Give feedback.
-
|
For anyone, posting my docker-compsose.yml here that I use to add S3 storage to a Grist instance. The critical piece was adding a healthcheck based on node to scality, so grist waits until scality cloudserver is up: # Scality S3 Server
scality:
image: zenko/cloudserver:latest
container_name: scality_s3
restart: always
environment:
# Disable connection to Zenko Orbit (Cloud Dashboard)
REMOTE_MANAGEMENT_DISABLE: 1
# Define credentials
SCALITY_ACCESS_KEY_ID: ${SCALITY_KEY}
SCALITY_SECRET_ACCESS_KEY: ${SCALITY_SECRET}
# Register the docker internal hostname
ENDPOINT: scality_s3
volumes:
- /srv/servicexyz/data/scality:/usr/src/app/localData
- /srv/servicexyz/data/scality_meta:/usr/src/app/localMetadata
healthcheck:
# Use Node.js to check the port
test: ["CMD", "node", "-e", "const c = require('net').connect(8000, '127.0.0.1', () => process.exit(0)); c.on('error', () => process.exit(1)); c.setTimeout(2000, () => process.exit(1));"]
interval: 5s
timeout: 5s
retries: 10
start_period: 20s
# ports:
# Expose for initial setup
# - "127.0.0.1:8000:8000"
Then add to your main service that uses scality s3: depends_on:
scality:
condition: service_healthy |
Beta Was this translation helpful? Give feedback.
hey you need disable SSL/TLS for localhost.