Created
September 17, 2020 08:05
-
-
Save kirshiyin89/50c768109ca508e5f2e9bb7678221304 to your computer and use it in GitHub Desktop.
etcd docker compose file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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