Skip to content

Commit

Permalink
chore: add in docker compose that allows for live reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Hardison committed Mar 5, 2024
1 parent 2013e1c commit ffbc67c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
ARG NODE_VERSION=20.10.0
ARG PNPM_VERSION=8.15.4
# Normally, I'm not a fan of locking the versions of the tools.

ARG NODE_VERSION=20

FROM node:${NODE_VERSION}-alpine as base

WORKDIR /app

RUN npm i -g pnpm@${PNPM_VERSION}
# Definitely don't lock pnpm version
RUN npm i -g pnpm

COPY package.json pnpm-lock.yaml ./

Expand Down
25 changes: 25 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
benddevops:
container_name: benddevops
image: benddevops-dev
build:
context: ./
dockerfile: Dockerfile
develop:
watch:
- path: ./package.json
action: rebuild
volumes:
- ./src:/app/src
ports:
- 3000:3000
networks:
- default
environment:
- BUS_EMAIL='[email protected]'
- AWS_ACCESS_KEY_SES
- AWS_SECRET_ACCESS_KEY_SES

networks:
default:
name: benddevops

1 comment on commit ffbc67c

@vercel
Copy link

@vercel vercel bot commented on ffbc67c Mar 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.