Skip to content

Commit

Permalink
🛠️ Update dockerfile and compose
Browse files Browse the repository at this point in the history
  • Loading branch information
TechSupportz committed Sep 9, 2024
1 parent ddb21d7 commit a3a4620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ services:
- .env

nginx:
build: .
container_name: nginx
image: nginx
restart: unless-stopped
Expand All @@ -23,7 +22,6 @@ services:
- ./certbot/www:/var/www/certbot

certbot:
build: .
container_name: certbot
image: certbot/certbot

Expand Down
4 changes: 4 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit a3a4620

Please sign in to comment.