From 15f6a8df22c955c6bd1c2bd3f8dfae8828b2d54c Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Fri, 1 May 2020 23:45:13 -0400 Subject: [PATCH] Update healthcheck to run --- infrastructure/cloudformation/dt/load_balancing.yaml | 2 ++ server/Dockerfile | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/infrastructure/cloudformation/dt/load_balancing.yaml b/infrastructure/cloudformation/dt/load_balancing.yaml index 471b2f8..6d4c666 100644 --- a/infrastructure/cloudformation/dt/load_balancing.yaml +++ b/infrastructure/cloudformation/dt/load_balancing.yaml @@ -37,6 +37,8 @@ Resources: NlbTargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: + HealthCheckPort: 80 + HealthCheckProtocol: HTTP Port: 7777 Protocol: TCP_UDP TargetGroupAttributes: diff --git a/server/Dockerfile b/server/Dockerfile index a27ebde..ea72233 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -14,10 +14,7 @@ RUN dnf install nginx -y COPY nginx.conf /etc/nginx/conf.d/nginx.conf -RUN rm /etc/nginx/conf.d/default.conf - RUN systemctl enable nginx.service - EXPOSE 80/tcp EXPOSE 7777/udp \ No newline at end of file