[add]docker-compose & etcd dockerfile
This commit is contained in:
6
docker-compose.yml
Normal file
6
docker-compose.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
etcd:
|
||||||
|
build: docker/etcd
|
||||||
|
ports:
|
||||||
|
- 2379:2379
|
||||||
|
- 2380:2370
|
||||||
13
docker/etcd/Dockerfile
Normal file
13
docker/etcd/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
FROM openeuler/openeuler:24.03
|
||||||
|
|
||||||
|
RUN dnf update -y \
|
||||||
|
&& dnf install etcd -y \
|
||||||
|
&& dnf clean all \
|
||||||
|
&& rm -rf /var/cache/dnf/*
|
||||||
|
|
||||||
|
ENV ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:2379" \
|
||||||
|
ETCD_ADVERTISE_CLIENT_URLS="http://127.0.0.1:2379"
|
||||||
|
|
||||||
|
EXPOSE 2379 2380
|
||||||
|
|
||||||
|
CMD ["etcd"]
|
||||||
Reference in New Issue
Block a user