fix: disable database sync and simplify backend startup
This commit is contained in:
1 parent
06a0c9fe05
commit
bfc7e76f17
2 files changed
+2
-3
No files matched your search
+1
-2
@@ -33,7 +33,6 @@ RUN addgroup -g 1001 -S nodejs && \
|
|||||||
COPY --from=builder --chown=nodejs:nodejs /app/dist ./dist
|
COPY --from=builder --chown=nodejs:nodejs /app/dist ./dist
|
||||||
COPY --from=builder --chown=nodejs:nodejs /app/node_modules ./node_modules
|
COPY --from=builder --chown=nodejs:nodejs /app/node_modules ./node_modules
|
||||||
COPY --from=builder --chown=nodejs:nodejs /app/package*.json ./
|
COPY --from=builder --chown=nodejs:nodejs /app/package*.json ./
|
||||||
COPY --chown=nodejs:nodejs docker-entrypoint.sh ./
|
|
||||||
|
|
||||||
# Switch to non-root user
|
# Switch to non-root user
|
||||||
USER nodejs
|
USER nodejs
|
||||||
@@ -46,4 +45,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Start application
|
# Start application
|
||||||
CMD ["sh", "docker-entrypoint.sh"]
|
CMD ["node", "dist/src/main.js"]
|
||||||
@@ -73,7 +73,7 @@ services:
|
|||||||
DATABASE_USERNAME: placebo_user
|
DATABASE_USERNAME: placebo_user
|
||||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
||||||
DATABASE_NAME: placebo_backend_db
|
DATABASE_NAME: placebo_backend_db
|
||||||
DATABASE_SYNCHRONIZE: 'true'
|
DATABASE_SYNCHRONIZE: 'false'
|
||||||
DATABASE_LOGGING: 'true'
|
DATABASE_LOGGING: 'true'
|
||||||
JWT_SECRET: ${JWT_SECRET}
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
JWT_EXPIRATION: '86400'
|
JWT_EXPIRATION: '86400'
|
||||||
|
|||||||
Reference in new issue
Block a user