Skip to content

Commit 3c514b6

Browse files
committed
etcd docker compose config.
1 parent 96fcce4 commit 3c514b6

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,17 @@ services:
55
container_name: asyncdb
66
ports:
77
- 8080:80
8+
etcd:
9+
image: quay.io/coreos/etcd:v3.5.9
10+
container_name: etcd
11+
environment:
12+
- ETCD_NAME=etcd-node
13+
- ETCD_DATA_DIR=/etcd-data
14+
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
15+
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
16+
ports:
17+
- 2379:2379
18+
volumes:
19+
- /tmp/etcd-data:/etcd-data:Z
20+
command:
21+
- /usr/local/bin/etcd

0 commit comments

Comments
 (0)