andrewrreed HF staff commited on
Commit
b318189
·
1 Parent(s): cfa5bdb

specify hostname

Browse files
Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +6 -1
docker-entrypoint-wrapper.sh CHANGED
@@ -54,6 +54,11 @@ fi
54
  # Update DATABASE_URL to use TCP connection
55
  export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
56
 
 
 
 
 
 
57
  # Start Next.js in the background
58
  ./web/entrypoint.sh node ./web/server.js \
59
  --keepAliveTimeout 110000 \
@@ -74,5 +79,5 @@ echo "-------------------------"
74
  netstat -tulpn
75
  echo "-------------------------"
76
 
77
- # Keep the script running (and the container alive)
78
  wait
 
54
  # Update DATABASE_URL to use TCP connection
55
  export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
56
 
57
+ # Export these environment variables to influence Next.js binding
58
+ export HOSTNAME="0.0.0.0"
59
+ export HOST="0.0.0.0"
60
+ export PORT=3000
61
+
62
  # Start Next.js in the background
63
  ./web/entrypoint.sh node ./web/server.js \
64
  --keepAliveTimeout 110000 \
 
79
  netstat -tulpn
80
  echo "-------------------------"
81
 
82
+ # Keep the script running
83
  wait