[修改]数据映射

This commit is contained in:
10908
2024-10-09 15:43:28 +08:00
committed by Coding
parent f8dbe17c6a
commit 13467b75d2
7 changed files with 96 additions and 2 deletions

View File

@@ -19,7 +19,8 @@ RUN dnf update -y \
# 设置环境变量
ENV ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:2379" \
ETCD_ADVERTISE_CLIENT_URLS="http://127.0.0.1:2379"
ETCD_ADVERTISE_CLIENT_URLS="http://127.0.0.1:2379" \
ETCD_DATA_DIR=/var/lib/etcd/
# 暴露端口
EXPOSE 2379 2380