@ -31,6 +31,6 @@ ENV DB_NAME mx
ENV JWT_SECRET secret
ENV JWT_EXPIRY 1h
CMD ["sh", "-c", "DB_HOST=${DB_HOST} DB_PORT=${DB_PORT} DB_USER=${DB_USER} DB_PASS=${DB_PASS} DB_NAME=${DB_NAME} JWT_SECRET=${JWT_SECRET} JWT_EXPIRY=${JWT_EXPIRY} pnpm run start:prod --host 0.0.0.0"]
CMD ["sh", "-c", "DB_HOST=${DB_HOST} DB_PORT=${DB_PORT} DB_USER=${DB_USER} DB_PASS=${DB_PASS} DB_NAME=${DB_NAME} JWT_SECRET=${JWT_SECRET} JWT_EXPIRY=${JWT_EXPIRY} node dist/main --host 0.0.0.0"]
EXPOSE 3000
@ -14,3 +14,5 @@ services:
container_name: app
depends_on:
- db
ports:
- 3000:3000