build(docker): add docker-compose.yml file

This commit is contained in:
ryan 2025-04-10 17:56:38 +03:00
parent 9910e458f1
commit 67fc4a6987
2 changed files with 15 additions and 1 deletions

14
docker-compose.yml Normal file
View file

@ -0,0 +1,14 @@
version: '3.3'
services:
calmerge:
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NODE_PORT=3000
volumes:
- ./calendar:/app/calendar
- ./logs:/app/logs
restart: unless-stopped

View file

@ -8,7 +8,7 @@ WORKDIR /usr/src/app
COPY package*.json ./ COPY package*.json ./
# Install dependencies # Install dependencies
RUN npm install --production RUN npm install --omit=dev
# Copy the rest of the project files # Copy the rest of the project files
COPY . . COPY . .