[add]docker-compose & etcd dockerfile

This commit is contained in:
2024-08-22 15:00:21 +08:00
parent 141f540bd0
commit 53fab76925
2 changed files with 19 additions and 0 deletions

13
docker/etcd/Dockerfile Normal file
View 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"]