mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 20:49:42 +03:00
Begin on devops
This commit is contained in:
2
backend/.dockerignore
Normal file
2
backend/.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
dockerfile
|
||||||
8
backend/dockerfile
Normal file
8
backend/dockerfile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
FROM node:lts-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
COPY package.json pnpm-*.yaml ./
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
|
COPY . .
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD [ "pnpm", "start" ]
|
||||||
@@ -16,6 +16,22 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- neuro_postgres_db:/var/lib/postgresql/data
|
- neuro_postgres_db:/var/lib/postgresql/data
|
||||||
restart: always
|
restart: always
|
||||||
|
backend:
|
||||||
|
container_name: neuro_front
|
||||||
|
build: ./backend
|
||||||
|
stdin_open: true
|
||||||
|
networks:
|
||||||
|
- labnet
|
||||||
|
volumes:
|
||||||
|
- ./backend:/app
|
||||||
|
- /app/node_modules
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
neuro_postgres_db:
|
neuro_postgres_db:
|
||||||
driver: local
|
driver: local
|
||||||
|
networks:
|
||||||
|
labnet:
|
||||||
Reference in New Issue
Block a user