The example docker-compose.yml files on these links has a typo:
The latest prerelease builds require port 40333 to be open as well as 30333. The command to expose the port is in the volumes section. I think this bit:
# Un-comment following 2 lines to unlock farmer's RPC
# ports:
# - "127.0.0.1:9955:9955"
# Instead of specifying volume (which will store data in `/var/lib/docker`), you can
# alternatively specify path to the directory where files will be stored, just make
# sure everyone is allowed to write there
volumes:
- farmer-data:/var/subspace:rw
# - /path/to/subspace-farmer:/var/subspace:rw
# If port 40333 is already occupied by something else, replace all
# occurrences of `40333` in this file with another value
- "0.0.0.0:40333:40333"
Should become:
ports:
# Un-comment following line to unlock farmer's RPC
# - "127.0.0.1:9955:9955"
# If port 40333 is already occupied by something else, replace all
# occurrences of `40333` in this file with another value
- "0.0.0.0:40333:40333"
# Instead of specifying volume (which will store data in `/var/lib/docker`), you can
# alternatively specify path to the directory where files will be stored, just make
# sure everyone is allowed to write there
volumes:
- farmer-data:/var/subspace:rw
# - /path/to/subspace-farmer:/var/subspace:rw
I can test and create a PR for farming.md in Github if you like. Not sure how the file is pushed to the documentation site though.
I’ve tested and the above change works. Though my farmer appeared to be syncing fine without port 40333 being open for access (port forwarded but not exposed from Docker). Could we add a comment to the file explaining what port 30333 on the node and 40333 on the farmer are needed for?
thanks for catching this jim! Feel free to create a PR on the repo, farming.md is the correct file to change, you will also want to check the versioned folders if it applies to any of the prior versions aswell
I’ve created a pull request. I couldn’t find any other reference to the port in the repository but I’m not sure where the versioned folders you mention can be found?