test fix -marker
This commit is contained in:
parent
d2c69b655d
commit
874a5e5f76
2
.env
2
.env
@ -3,6 +3,8 @@ POSTGRES_PASSWORD=irina76
|
|||||||
POSTGRES_DB=imk_db
|
POSTGRES_DB=imk_db
|
||||||
DATABASE_URL="postgresql://postgres:postgres@postgres:5432/imk_db?schema=public"
|
DATABASE_URL="postgresql://postgres:postgres@postgres:5432/imk_db?schema=public"
|
||||||
#DATABASE_URL="postgresql://root:irina76@localhost:5432/imk?schema=public"
|
#DATABASE_URL="postgresql://root:irina76@localhost:5432/imk?schema=public"
|
||||||
|
REDIS_PASSWORD=somerandompassword
|
||||||
|
|
||||||
JWT_SECRET=some-secret
|
JWT_SECRET=some-secret
|
||||||
AWS_REGION=EU2
|
AWS_REGION=EU2
|
||||||
AWS_ACCESS_KEY_ID=4d2f5655369a02100375e3247d7e1fe6
|
AWS_ACCESS_KEY_ID=4d2f5655369a02100375e3247d7e1fe6
|
||||||
|
|||||||
0
backend/.dockerignore
Normal file
0
backend/.dockerignore
Normal file
@ -2,6 +2,10 @@ POSTGRES_USER=root
|
|||||||
POSTGRES_PASSWORD=irina76
|
POSTGRES_PASSWORD=irina76
|
||||||
POSTGRES_DB=imk_db
|
POSTGRES_DB=imk_db
|
||||||
DATABASE_URL="postgresql://postgres:postgres@postgres:5432/imk_db?schema=public"
|
DATABASE_URL="postgresql://postgres:postgres@postgres:5432/imk_db?schema=public"
|
||||||
|
|
||||||
|
REDIS_PASSWORD=somerandompassword
|
||||||
|
|
||||||
|
|
||||||
JWT_SECRET=some-secret
|
JWT_SECRET=some-secret
|
||||||
AWS_REGION=EU2
|
AWS_REGION=EU2
|
||||||
AWS_ACCESS_KEY_ID=4d2f5655369a02100375e3247d7e1fe6
|
AWS_ACCESS_KEY_ID=4d2f5655369a02100375e3247d7e1fe6
|
||||||
|
|||||||
@ -32,15 +32,16 @@ RUN apk add --no-cache curl wget
|
|||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
COPY prisma ./prisma/
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy prisma schema
|
# Copy prisma schema
|
||||||
COPY prisma ./prisma/
|
# COPY prisma ./prisma/
|
||||||
|
|
||||||
# Generate Prisma client
|
# Generate Prisma client
|
||||||
RUN npx prisma generate
|
RUN npx prisma generate
|
||||||
|
RUN npx prisma migrate deploy
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
COPY . .
|
COPY . .
|
||||||
@ -51,6 +52,8 @@ RUN npm run build
|
|||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
# ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /wait-for-it.sh
|
||||||
|
# RUN chmod +x /wait-for-it.sh
|
||||||
# Add healthcheck
|
# Add healthcheck
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||||
CMD wget -q --spider http://localhost:3000/health || exit 1
|
CMD wget -q --spider http://localhost:3000/health || exit 1
|
||||||
|
|||||||
1
backend/prisma/init.sql
Normal file
1
backend/prisma/init.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
CREATE DATABASE imk_db;
|
||||||
Loading…
Reference in New Issue
Block a user