feat: Docker and docker-compose implementation with mDNS discovery investigation#1
Draft
feat: Docker and docker-compose implementation with mDNS discovery investigation#1
Conversation
- Fix config imports and defaults (use main branch version) - Restore Docker readiness marker functionality from wip branch - Combine main branch daemon structure with Docker readiness features - Update project name to 'local-server' in log messages - Preserve loadDefaultEnvFile function from main branch
dc04c1c to
8c7705c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft: Docker Implementation & mDNS Discovery Investigation
Summary
This branch contains:
comapeo-local-serverStatus:⚠️ Docker builds and runs successfully, but mDNS peer discovery is not functional in rootless Docker environments. The investigation concludes that running directly on the host with Node is required for proper LAN discovery.
What This Branch Adds
Dockerfile (
linux/arm64andlinux/amd64)better-sqlite3,sodium-native) in builder stage/data/.readymarker/datadocker-compose.yml
network_mode: hostfor mDNS supportunless-stopped.envfileInvestigation Findings
The Problem
When run through
docker compose, the daemon starts correctly and logs show mDNS advertisement calls succeeding. However, Android peers cannot discover the containerized instance.Root Cause
This is a Docker runtime issue, not a CoMapeo daemon bug.
Findings from
DOCKER_DISCOVERY_FINDINGS.md:Container sees wrong network interfaces
tap0(10.0.2.100),docker0(172.17.0.1)Rootless Docker limitation
network_mode: hostin rootless Docker ≠ true host networking for mDNSVerification that daemon logic is correct
avahi-browseshows_comapeo._tcpConclusion
For mDNS-based peer discovery to work,
comapeo-local-servermust run directly on the host with Node, not in a Docker container on rootless Docker.Files Changed
Dockerfile,docker-compose.ymlDOCKER_DISCOVERY_FINDINGS.md(full investigation report)TASKS.md(implementation batches)PROGRESS.md(development tracking)Testing
Build
docker build -t comapeo-local-server .Run
Expected Behavior
Recommendations
Related
PLAN.mdfrom comapeo-desktop