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