1. 调整docker-compose.yml中容器名称

This commit is contained in:
haoqi
2022-09-16 15:54:34 +08:00
parent 227479f695
commit 7b0b6936e0
4 changed files with 21 additions and 24 deletions

View File

@@ -1,7 +1,10 @@
FROM centos:7.9.2009
FROM debian:stable-20220912-slim
LABEL org.opencontainers.image.authors="haoqi123"
ARG INIT_ES_FILE=./init/*
COPY ${INIT_ES_FILE} /
ENV TZ=Asia/Shanghai
ENTRYPOINT ["/bin/sh","/template.sh","start"]
RUN apt-get update \
&& apt-get install -y curl
ENTRYPOINT ["/bin/bash","/template.sh","start"]

View File

@@ -1,4 +1,4 @@
echo "Wait ElasticSearch Start..."
echo "Wait ElasticSearch Start...${SERVER_ES_ADDRESS}"
while true
do
curl -s --connect-timeout 10 -o /dev/null http://${SERVER_ES_ADDRESS}/_cat/nodes > /dev/null 2>&1