Skip to content

Instantly share code, notes, and snippets.

@kirshiyin89
Created September 17, 2020 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirshiyin89/50c768109ca508e5f2e9bb7678221304 to your computer and use it in GitHub Desktop.
Save kirshiyin89/50c768109ca508e5f2e9bb7678221304 to your computer and use it in GitHub Desktop.
etcd docker compose file
version: "3"
services:
etcd:
image: gcr.io/etcd-development/etcd:v3.4.13
command: >
/usr/local/bin/etcd
--name node1
--initial-advertise-peer-urls http://127.0.0.1:2380
--listen-peer-urls http://0.0.0.0:2380
--advertise-client-urls http://127.0.0.1:2379
--listen-client-urls http://0.0.0.0:2379
--initial-cluster node1=http://127.0.0.1:2380
--debug
expose:
- 2379
- 2380
ports:
- "2379:2379"
- "3380:2380"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment