diff --git a/Dockerfile b/Dockerfile index f1df9d9..1f9b0d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 222428d..3b91bfc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,3 +14,5 @@ services: container_name: app depends_on: - db + ports: + - 3000:3000