Skip to content

Commit 1955980

Browse files
committed
fixing problem with cluster init for haproxy example
1 parent dbcbd46 commit 1955980

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example-haproxy/docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
container_name: crdb-0
77
hostname: crdb-0
88
image: cockroachdb/cockroach:latest
9-
command: start-single-node --cluster-name=example-haproxy --logtostderr=WARNING --log-file-verbosity=WARNING --insecure
9+
command: start --cluster-name=example-haproxy --logtostderr=WARNING --log-file-verbosity=WARNING --insecure --join=crdb-0
1010

1111
crdb-1:
1212
container_name: crdb-1
@@ -46,6 +46,7 @@ services:
4646
environment:
4747
- COCKROACH_HOST=crdb-0:26257
4848
- COCKROACH_INSECURE=true
49+
- COCKROACH_INIT=true
4950
- DATABASE_NAME=test
5051
depends_on:
5152
- lb

0 commit comments

Comments
 (0)