Use ports 3020/8020 to avoid conflicts on shared server
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
dcd2b60885
commit
da3c3eb016
@ -5,7 +5,7 @@ server {
|
||||
client_max_body_size 20M;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8000/api/;
|
||||
proxy_pass http://127.0.0.1:8020/api/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@ -14,18 +14,18 @@ server {
|
||||
}
|
||||
|
||||
location /docs {
|
||||
proxy_pass http://127.0.0.1:8000/docs;
|
||||
proxy_pass http://127.0.0.1:8020/docs;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
location /openapi.json {
|
||||
proxy_pass http://127.0.0.1:8000/openapi.json;
|
||||
proxy_pass http://127.0.0.1:8020/openapi.json;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_pass http://127.0.0.1:3020;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
@ -15,7 +15,7 @@ services:
|
||||
build: ./backend
|
||||
container_name: nomadflow-api
|
||||
ports:
|
||||
- "127.0.0.1:8000:8000"
|
||||
- "127.0.0.1:8020:8000"
|
||||
environment:
|
||||
- POCKETBASE_URL=http://pocketbase:8090
|
||||
- POCKETBASE_ADMIN_EMAIL=${POCKETBASE_ADMIN_EMAIL:-admin@nomadflow.io}
|
||||
@ -33,7 +33,7 @@ services:
|
||||
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-https://nomadweb.nomadro.com/api/v1}
|
||||
container_name: nomadflow-web
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
- "127.0.0.1:3020:3000"
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
@ -62,8 +62,8 @@ fi
|
||||
|
||||
echo "==> Health check..."
|
||||
sleep 5
|
||||
curl -sf "http://127.0.0.1:8000/api/v1/health" && echo " API OK"
|
||||
curl -sf -o /dev/null "http://127.0.0.1:3000" && echo " Frontend OK"
|
||||
curl -sf "http://127.0.0.1:8020/api/v1/health" && echo " API OK"
|
||||
curl -sf -o /dev/null "http://127.0.0.1:3020" && echo " Frontend OK"
|
||||
|
||||
echo ""
|
||||
echo "Deploy complete!"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user