fix: disable database sync and simplify backend startup

This commit is contained in:
echo 2026-02-27 20:10:03 +01:00
parent 06a0c9fe05
commit bfc7e76f17
2 changed files with 2 additions and 3 deletions

View File

@ -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/node_modules ./node_modules
COPY --from=builder --chown=nodejs:nodejs /app/package*.json ./
COPY --chown=nodejs:nodejs docker-entrypoint.sh ./
# Switch to non-root user
USER nodejs
@ -46,4 +45,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
EXPOSE 3000
# Start application
CMD ["sh", "docker-entrypoint.sh"]
CMD ["node", "dist/src/main.js"]

View File

@ -73,7 +73,7 @@ services:
DATABASE_USERNAME: placebo_user
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
DATABASE_NAME: placebo_backend_db
DATABASE_SYNCHRONIZE: 'true'
DATABASE_SYNCHRONIZE: 'false'
DATABASE_LOGGING: 'true'
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRATION: '86400'