Update for dns changes
This commit is contained in:
@@ -17,5 +17,5 @@ COPY --from=build /src/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s --retries=3 \
|
||||
CMD wget -qO- http://localhost/ >/dev/null || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget -qO- http://127.0.0.1/ >/dev/null || exit 1
|
||||
@@ -1,5 +1,10 @@
|
||||
server {
|
||||
listen 80;
|
||||
# Required explicitly: the nginx image's 10-listen-on-ipv6-by-default.sh
|
||||
# only patches the stock default.conf. We replace that file, so without
|
||||
# this line the container listens on IPv4 only while HEALTHCHECK wget
|
||||
# resolves localhost to ::1 and fails → Docker reports unhealthy.
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
Reference in New Issue
Block a user