Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mastodon
  3. Accessing Minio through Container ID

Accessing Minio through Container ID

Scheduled Pinned Locked Moved Solved Mastodon
3 Posts 2 Posters 142 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gerard
    wrote on last edited by
    #1

    I'm hosting a mastodon instance and a minio storage on the same Cloudron. Both subdomains are setup to use the Cloudflare proxy. I tried resolving minio's URL using the mastodon container's terminal and I realized that it resolves to the Cloudflare proxy IP. This could cause unnecessary external network traffic. So I tried different S3 settings in the mastodon env.production in order to make it communicate with minio locally. I finally manager to make it work using the Docker container ID. So I wanted to share this in case it can be helpful to someone. Here is what it looks like:

    S3_HOSTNAME=minio.example.com
    S3_ENDPOINT=http://1234567-890-123-456-1234567:9000
    

    Unfortunately I didn't manager to do the same with Nextcloud for connecting to Collabora.

    1 Reply Last reply
    2
    • J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      @gerard the container id is not a constant. It will keep changing on updates . the port 9000 is also packaging specific, but it's quite unlikely this port changes.

      An idea might be to add the minio domain in the /etc/hosts (on the server) to point to the server IP .

      G 1 Reply Last reply
      1
      • J joseph

        @gerard the container id is not a constant. It will keep changing on updates . the port 9000 is also packaging specific, but it's quite unlikely this port changes.

        An idea might be to add the minio domain in the /etc/hosts (on the server) to point to the server IP .

        G Offline
        G Offline
        gerard
        wrote on last edited by
        #3

        @joseph Thank you for your feedback. So far, my setup has been working well for a month. But I will follow your advice and use the hosts file to avoid updates breaking my setup.

        1 Reply Last reply
        0
        • nebulonN nebulon marked this topic as a question on
        • nebulonN nebulon has marked this topic as solved on
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search