From db37a8c924f97c056ed717050e2bbed80ac0d3fa Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sat, 2 May 2020 00:16:51 -0400 Subject: [PATCH] Reimplement healthcheck without forcing port --- infrastructure/cloudformation/dt/task.yaml | 3 +++ server/Dockerfile | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/infrastructure/cloudformation/dt/task.yaml b/infrastructure/cloudformation/dt/task.yaml index 0de2430..498f09b 100644 --- a/infrastructure/cloudformation/dt/task.yaml +++ b/infrastructure/cloudformation/dt/task.yaml @@ -36,6 +36,9 @@ Resources: - HostPort: 0 ContainerPort: 7777 Protocol: udp + - HostPort: 0 + ContainerPort: 80 + Protocol: tcp LogConfiguration: LogDriver: awslogs Options: diff --git a/server/Dockerfile b/server/Dockerfile index 6822f5b..ea72233 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -9,4 +9,12 @@ RUN cd /dt; /dt/build.sh CMD ["/dt/builds/server.out"] +# Setup status endpoint +RUN dnf install nginx -y + +COPY nginx.conf /etc/nginx/conf.d/nginx.conf + +RUN systemctl enable nginx.service + +EXPOSE 80/tcp EXPOSE 7777/udp \ No newline at end of file