Prepare for merge with dev. FIxed docker configs

This commit is contained in:
2023-11-25 19:49:52 +03:00
parent 4bac307109
commit f8d805d18e
3 changed files with 10 additions and 12 deletions

View File

@@ -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" ]

View File

@@ -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",

View File

@@ -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: