USER root
RUN echo -e "$PASSWORD\n$PASSWORD" | passwd $USER_NAME
USER $USER_NAME
WORKDIR /home/$USER_NAME
RUN echo $(whoami)| tee /home/$USER_NAME/test2.txt
ADD test1.txt /
depends_on:
elasticsearch:
condition: service_healthy
и healthcheck:
test:
[
"CMD-SHELL",
"curl http://localhost:9200 | grep -q 'You Know, for Search'",
]
interval: 10s
timeout: 10s
retries: 60