diff --git a/docker-compose.yml b/docker-compose.yml index b9ebd62..9cb4f39 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,6 @@ services: - .env nginx: - build: . container_name: nginx image: nginx restart: unless-stopped @@ -23,7 +22,6 @@ services: - ./certbot/www:/var/www/certbot certbot: - build: . container_name: certbot image: certbot/certbot diff --git a/dockerfile b/dockerfile index a8052d3..e1479fb 100644 --- a/dockerfile +++ b/dockerfile @@ -27,6 +27,10 @@ WORKDIR /app COPY --from=build /app/dist/ ./dist/ COPY --from=build /app/node_modules ./node_modules +# copy over nginx and certbot configuration +COPY nginx.conf /etc/nginx/nginx.conf +COPY certbot /var/www/certbot + EXPOSE 80 443 CMD [ "node", "dist/server.js" ] \ No newline at end of file