forked from carrydela/Rs_blog_front
fix:port
This commit is contained in:
@@ -8,10 +8,11 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
# REPLACE THIS with your actual backend URL (e.g., https://api.yourdomain.com)
|
||||
# Since this is a client-side var, it cannot be "localhost" if accessed from outside the server.
|
||||
NEXT_PUBLIC_API_URL: 0.0.0.0:8765
|
||||
# 0.0.0.0 does NOT work for browsers. Use 127.0.0.1 for local, or public IP for server.
|
||||
NEXT_PUBLIC_API_URL: http://127.0.0.1:8765
|
||||
restart: always
|
||||
ports:
|
||||
- "3000:3000"
|
||||
# Maps host port 3001 to container port 3000 to avoid conflict
|
||||
- "3001:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
|
||||
Reference in New Issue
Block a user