Skip to content

Switch to seaweedfs from minio in docker compose - #1889

Merged
SevLG merged 10 commits into
devfrom
switch-to-seaweedfs-from-minio-in-docker-compose
Nov 12, 2026
Merged

SevLG merged 10 commits into
devfrom
switch-to-seaweedfs-from-minio-in-docker-compose

Conversation

@SevLG

@SevLG SevLG commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request Template

Before Marking as Ready for Review

  • Add relevant information to the sections below (Summary etc)
  • Rebase or merge the latest dev (or other targeted branch)
  • Update documentation if needed
  • Add an entry to the SPRINTLOG.md if needed
  • Choose an appropriate label. See here for information on the labelling options
  • The code follows the style guidelines
  • Perform a self-review: read the diff as if reviewing someone else's code
  • I have commented the code, particularly in hard-to-understand areas
  • Verify that all checks and tests have passed

If the target branch is master:

Summary

Replaces MinIO with SeaweedFS (weed mini) as the local S3 storage in docker-compose.yml, and makes the full development setup the default instead of spreading it over several profiles. MinIO no longer publishes community Docker images, so since #1876 we've depended on a third-party fork (pgsty/minio). SeaweedFS is actively maintained open source with official images, and weed mini runs a complete S3 setup in a single container.

SeaweedFS

  • Services minio/minio2 are now weedmini/weedmini2. Ports are unchanged: 9000 for the first instance and 9002 for the second. MinIO's web console ports (9001, 9003) are removed.
  • Default SAFESPRING_URL and the access/secret keys in config.py are updated to match.
  • Turns off weed mini defaults we don't need: automatic bucket creation, telemetry, WebDAV, and the Iceberg/Lance endpoints.
  • Adds the optional data folders to .gitignore.

Docker compose profiles

  • Removes the dev, mail, redis, s3, full-dev and cli profiles. Most of them no longer worked because the app now needs redis.
  • Plain docker compose up now starts what full-dev used to, except weedmini2.
  • weedmini2 is now under a new s3-switch profile, since it's only needed for testing a switch between two S3 storages.
  • The Pytest workflow (and the test commands in the README) now start only backend and db. Otherwise every service would start in CI, including cli, which fails without ../dds_cli.
  • Updates the README, migrations/README.md and .gitpod.yml to match.

Related Issue/Ticket

HMS-2688

Testing

  • Ran docker compose up, then created a project and uploaded and downloaded files with the CLI from the dds_cli container.
  • Checked that the default setup starts everything except weedmini2. The backend responds, redis answers a ping, and both the backend and cli containers can reach weedmini.
  • Ran docker compose --profile s3-switch up and checked that it also starts weedmini2, which accepts its own keys.
  • Checked that SeaweedFS enforces the keys: correct ones work and wrong ones get InvalidAccessKeyId.
  • Ran the other S3 operations DDS uses against weedmini2 with boto3: create_bucket, put_object, generate_presigned_url, delete_objects, emptying a bucket through Bucket.objects and deleting it.
  • Dry-ran the new CI test command and checked that it starts only backend and db.

Reviewer Notes

  • Existing local setups: run docker compose down --remove-orphans before the first up, otherwise the old MinIO containers can clash with the new ones.
  • Profiles: --profile full-dev, cli and the other old profiles are gone. Use --profile s3-switch only when you need the second S3 storage.
  • Local config: if your own dds_app.cfg sets SAFESPRING_URL or the keys to the MinIO values, update or remove them.
  • Dev only: SeaweedFS's internal user-management service has no authentication. Itside the Docker network, so it's fine here, but this setup shouldn't be used outsidedevelopment.

Once all boxes are checked, mark the PR as Ready for Review and tag at least one team member as the initial reviewer.

SevLG added 2 commits November 5, 2026 15:05
… to minio to say seaweedfs/weed mini instead.
…inio. Added said volumes to gitignore to avoid accidentally pushing data from them.
@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.94%. Comparing base (441018f) to head (20694fa).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1889   +/-   ##
=======================================
  Coverage   92.94%   92.94%           
=======================================
  Files          30       30           
  Lines        5074     5074           
=======================================
  Hits         4716     4716           
  Misses        358      358           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@SevLG SevLG added the skip-changelog For release template label Nov 6, 2026
@SevLG
SevLG marked this pull request as ready for review November 6, 2026 10:40
@SevLG
SevLG requested a review from a team as a code owner November 6, 2026 10:40

@valyo valyo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weedmini2 is not really needed when we spin upp the stack, I think it was added to test how things work when switching between S3 endpoints. Having one container more or less is not making a huge difference, but the stack is heavy enough and I we should remove it from the normal workflow.
This will be a good time to clean up the profiles: now we need to use full-dev in order for it to work (redis is not optional because of RQ); ideally this should be achieved without specifying a profile, what needs to start then is:
db
backend
node_builder
redis
mailcatcher
weedmini
cli

at least for me some of the profiles don't make sense as they are

Then it seems we only need a profile to start that extra weedmini2 together with the normal day-to-day work stack, so maybe just profile for it.

What do you think?

@SevLG

SevLG commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

@valyo I agree and I think we discussed this earlier, that some of the profiles are redundant.

Are you saying we should have only 1 profile, for testing switching between S3 endpoints? So the default with no profile given is equivalent to current "full-dev", and weedmini2 is only added if you use --profile s3-switch-endpoints-test or something like that?

@valyo

valyo commented Nov 6, 2026

Copy link
Copy Markdown
Member

@valyo I agree and I think we discussed this earlier, that some of the profiles are redundant.

Are you saying we should have only 1 profile, for testing switching between S3 endpoints? So the default with no profile given is equivalent to current "full-dev", and weedmini2 is only added if you use --profile s3-switch-endpoints-test or something like that?

Sounds good! Please just make the profile as short as possible :) , like s3-switch or even just s3 , this isn't going to be used so much

@SevLG
SevLG marked this pull request as draft November 6, 2026 17:24
@SevLG
SevLG marked this pull request as ready for review November 7, 2026 13:12
@SevLG

SevLG commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

@valyo Ready for new review

@valyo

valyo commented Nov 9, 2026

Copy link
Copy Markdown
Member

@jimdale , @samanrassam : I have tested these changes and they work as expected; please comment here when you test and it works for everyone we can approve and merge

@jimdale

jimdale commented Nov 10, 2026

Copy link
Copy Markdown

Tested this by launching the new dev environment on laptop. Everything works as expected - system builds without problems and project creation, data upload and download work as before. Docker compose file is clearly commented - everything looks good to me.

@samanrassam

Copy link
Copy Markdown

Tested this by upgrading my existing MinIO setup instead of starting from a fresh clone, and it works for me. I tried upload and download (including a 100 MB file), rm, project delete and archive, the lost-files commands and the s3-switch/sto4 setup. Also checked that the new test command still exits non-zero when tests fail. Works well!

Two (super minor) things:

The docker compose down --remove-orphans step from the PR description should probably be in the README too? If you just pull and run docker compose up -d, weedmini can't start because MinIO still holds port 9000, so you keep running on MinIO without really noticing. If you add the --remove-orphans that compose suggests, the db still has the old minio endpoint and project create just times out. Running down first avoids both.

Also, if you started weedmini2 with s3-switch, a plain docker compose down leaves it running. You need docker compose --profile s3-switch down. Could be worth a line in the README maybe.

@SevLG

SevLG commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

@samanrassam that's true, I will add those things to the readme

@SevLG

SevLG commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

@samanrassam README updated

@SevLG
SevLG merged commit 1b264c2 into dev Nov 12, 2026
16 checks passed
@SevLG
SevLG deleted the switch-to-seaweedfs-from-minio-in-docker-compose branch November 12, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog For release template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants