mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 12:49:41 +03:00
Prepare for merge with dev. FIxed docker configs
This commit is contained in:
@@ -4,5 +4,6 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||
COPY package.json pnpm-*.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
COPY . .
|
||||
RUN pnpm build
|
||||
EXPOSE 3000
|
||||
CMD [ "pnpm", "start" ]
|
||||
CMD [ "pnpm", "start:prod" ]
|
||||
@@ -11,7 +11,7 @@
|
||||
"start": "nest start",
|
||||
"start:dev": "nest start --watch",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
"start:prod": "node dist/main",
|
||||
"start:prod": "node dist/src/main",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
|
||||
@@ -18,28 +18,25 @@ services:
|
||||
volumes:
|
||||
- neuro_postgres_db:/var/lib/postgresql/data
|
||||
restart: always
|
||||
|
||||
backend:
|
||||
container_name: neuro_backend
|
||||
build: ./backend
|
||||
stdin_open: true
|
||||
environment:
|
||||
- DATABASE_HOST='db'
|
||||
- DATABASE_PORT=${DATABASE_PORT}
|
||||
- DATABASE_USERNAME=${DATABASE_USER}
|
||||
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
|
||||
- DATABASE_DB=${DATABASE_NAME}
|
||||
- DATABASE_PORT=5432
|
||||
- DATABASE_HOST=db
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- labnet
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- /app/node_modules
|
||||
ports:
|
||||
- 3000:3000
|
||||
depends_on:
|
||||
- db
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
neuro_postgres_db:
|
||||
driver: local
|
||||
networks:
|
||||
labnet: {}
|
||||
labnet:
|
||||
|
||||
Reference in New Issue
Block a user