scireum / s3ninja

S3 ninja emulates the Amazon S3 API for developement and test purposes
MIT License
493 stars 91 forks source link

Address Not Found #206

Closed msrumon closed 2 years ago

msrumon commented 2 years ago

Here's my (simplified) docker-compose:

volumes:
  s3Data: ~
  s3Logs: ~
services:
  app:
    depends_on:
      - storage
    build:
      context: .
      dockerfile: Dockerfile
    env_file:
      - .env.example
    environment:
      NODE_ENV: production
      S3_KEY: AKIAIOSFODNN7EXAMPLE
      S3_SECRET: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
      S3_BUCKET: msrumon
      S3_REGION: void
      S3_ENDPOINT: http://storage:9000
    ports:
      - 80:1234
  storage:
    image: scireum/s3-ninja
    volumes:
      - s3Data:/home/sirius/data:delegated
      - s3Logs:/home/sirius/logs:delegated
    restart: unless-stopped

With this config, when I up the "app" service and try to put something in the storage, I get the following error:

{
  "errno": -3008,
  "code": "ENOTFOUND",
  "syscall": "getaddrinfo",
  "hostname": "msrumon.storage",
  "$metadata": {
    "attempts": 1,
    "totalRetryDelay": 0
  }
}

Also tried to create that bucket from the UI before writing data in there, no luck.

msrumon commented 2 years ago

Sorry, my bad. It was an error from my side.

teobmg commented 1 year ago

@msrumon I have the same issue, how did you solved?

msrumon commented 1 year ago

@msrumon I have the same issue, how did you solved?

@teobmg I'm extremely sorry for the late reply. Please share your config (docker-compose or something) -- preferably a reproducible example, so that I can better help you. Thanks in advance.