# How to create a Crate Cluster from two node

**URL:** <https://community.cratedb.com/t/how-to-create-a-crate-cluster-from-two-node/1369>\
**Category:** Configuration\
**Created:** [February 9, 2023, 10:57am UTC](https://community.cratedb.com/t/how-to-create-a-crate-cluster-from-two-node/1369 "2023-02-09T10:57:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![proddata](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/proddata/32/1379_2.png) [@proddata](https://community.cratedb.com/u/proddata)\
**Post date:** [February 20, 2023, 2:09pm UTC](https://community.cratedb.com/t/how-to-create-a-crate-cluster-from-two-node/1369/4 "2023-02-20T14:09:48Z")

</div>

Hi @cocoa

A cluster started with `discovery.type=single-node` unfortunately will never join a multi-node cluster.

* * *

> Would it be possible to have an example of settings to use in two separate docker composes (on two different hosts)?

Are we talking about a Docker swarm setup or just two independent hosts?  
A docker swarm example can be found here:

> [@Docker Swarm cluster](https://community.cratedb.com/t/docker-swarm-cluster/749/8):
>
> Finally fixed it ! [image] It was a networking issue, as pointed out [in this issue](https://github.com/deviantony/docker-elk/issues/455#issuecomment-708035654). The working stack: version: '3.5' services: crate: image: crate:latest ports: - "4200:4200" environment: SLOT: "{{.Task.Slot}}" volumes: - crate-data:/data hostname: "crate-{{.Task.Slot}}" command: \> crate -Ccluster.name=swarm -Cnode.name=crate-$${SLOT} -Cnetwork.publish\_host=\_eth0\_ -Cdiscovery.type='zen' -Cdiscovery.seed\_hosts=ta…

---

_[View the full topic](https://community.cratedb.com/t/how-to-create-a-crate-cluster-from-two-node/1369)._
