diff --git a/Dockerfile b/Dockerfile index a5ef686..3cb3638 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,7 +60,7 @@ ENV NODE_ENV=demo # RUN apk update && apk add bash RUN apk update && apk add git -RUN npm install -g npm@latest +#RUN npm install -g npm@latest WORKDIR /app @@ -69,6 +69,7 @@ COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"] # && mv node_modules ../ COPY . . RUN npm install +#RUN mpm install nodemon EXPOSE 8080 8081 diff --git a/_notes/readme.md b/_notes/readme.md new file mode 100644 index 0000000..c3f9f72 --- /dev/null +++ b/_notes/readme.md @@ -0,0 +1,4 @@ +start the project in container: +# +#for debugging: +# docker-compose -f docker-compose.debug.yml up diff --git a/docker-compose.debug.yml b/docker-compose.debug.yml index a3107c4..0f229c0 100644 --- a/docker-compose.debug.yml +++ b/docker-compose.debug.yml @@ -8,7 +8,13 @@ services: dockerfile: ./Dockerfile environment: NODE_ENV: development + # TTS_BACKEND_URL: https://tts.d-popov.com/asr + TTS_BACKEND_URL: http://192.168.0.10:9009/asr + WS_URL: wss://ws.ai.d-popov.com + SERVER_PORT_WS: 3001 + SERVER_PORT_HTTP: 3000 ports: - - 3000:3000 + - 23000:3000 + - 23001:3001 - 9229:9229 command: ["node", "--inspect=0.0.0.0:9229", "web/server.js"]