Set HOSTNAME to 0.0.0.0 for Next.js standalone container
This commit is contained in:
1 parent
4af90d0c7d
commit
00fe342f88
1 file changed
+1
@@ -61,6 +61,7 @@ USER nextjs
|
||||
EXPOSE 3000
|
||||
|
||||
ENV PORT=3000
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
# We need to run migrations before starting the app.
|
||||
# Since we are using PostgreSQL and might not have migration files, we use db push
|
||||
|
||||
Reference in new issue
Block a user