# Example docker-compose.yml has an error

**URL:** <https://forum.autonomys.xyz/t/example-docker-compose-yml-has-an-error/599>\
**Category:** Support\
**Tags:** gemini\
**Created:** [August 18, 2022, 8:56am UTC](https://forum.autonomys.xyz/t/example-docker-compose-yml-has-an-error/599 "2022-08-18T08:56:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jim-counter](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/jim-counter/32/186_2.png) [@jim-counter](https://forum.autonomys.xyz/u/jim-counter)\
**Post date:** [August 18, 2022, 8:56am UTC](https://forum.autonomys.xyz/t/example-docker-compose-yml-has-an-error/599/1 "2022-08-18T08:56:48Z")

</div>

The example `docker-compose.yml` files on these links has a typo:

> <https://github.com/subspace/subspace/blob/main/docs/farming.md#-docker-instructions>

> **[Farming with the CLI | Subspace Labs Documentation](https://docs.subspace.network/protocol/farm/farming/)**
>
> How to run a Subspace Network Farmer with the CLI or Docker

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:

```auto
# 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:

```auto
    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.

---

<div class="post-metadata">

**Author:** ![jim-counter](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/jim-counter/32/186_2.png) [@jim-counter](https://forum.autonomys.xyz/u/jim-counter)\
**Post date:** [August 18, 2022, 9:47am UTC](https://forum.autonomys.xyz/t/example-docker-compose-yml-has-an-error/599/2 "2022-08-18T09:47:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ImmaZoni](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/immazoni/32/7_2.png) [@ImmaZoni](https://forum.autonomys.xyz/u/ImmaZoni)\
**Post date:** [August 19, 2022, 9:57pm UTC](https://forum.autonomys.xyz/t/example-docker-compose-yml-has-an-error/599/3 "2022-08-19T21:57:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jim-counter](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/jim-counter/32/186_2.png) [@jim-counter](https://forum.autonomys.xyz/u/jim-counter)\
**Post date:** [August 23, 2022, 11:58am UTC](https://forum.autonomys.xyz/t/example-docker-compose-yml-has-an-error/599/4 "2022-08-23T11:58:14Z")

</div>

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?
