alfaarghya / alfa-leetcode-api

It's a custom leetcode api. This API provides endpoints to retrieve details about a user's profile, badges, solved questions, contest details, contest history, submissions, calendar and and also daily questions, selected problem, list of problems.
https://alfa-leetcode-api.onrender.com/
MIT License
251 stars 97 forks source link

FIX : docker-compose for development #19

Closed alfaarghya closed 3 months ago

alfaarghya commented 4 months ago

I'm having trouble getting the docker-compose up command to work for hot-reload 😅.

To enable hot-reload with docker-compose up, we need to modify the Dockerfile and docker-compose.yml.

Can anyone help me fix this problem? 🤔

merakesh99 commented 3 months ago
version: '3.8'

services:
  app:
    build: .
    container_name: alfa-leetcode-api-docker
    ports:
      - '3000:3000'
    restart: always
    environment:
      - WDS_SOCKET_HOST=127.0.0.1 
      - CHOKIDAR_USEPOLLING=true
      - WATCHPACK_POLLING=true
    volumes:
      - .:/usr/src/app
      - /usr/src/app/node_modules
    command: npm run dev
alfaarghya commented 3 months ago

The issue has been resolved 😀. Thanks for the contribution @merakesh99