Compare commits
No commits in common. "533fe1f84ef4cde14ca13799486017bc11881812" and "ba9b1a9a73cc3c784b718ffdfd0dc631936ce562" have entirely different histories.
533fe1f84e
...
ba9b1a9a73
|
|
@ -32,7 +32,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||||
"""
|
"""
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["http://localhost:3000","*"],
|
allow_origins=["*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ class ApiConfig(DefaultApiConfig):
|
||||||
# Server Configuration
|
# Server Configuration
|
||||||
app = "app:app"
|
app = "app:app"
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 8888
|
port = 41575
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
reload = True
|
reload = True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||||
"""
|
"""
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["http://localhost:3000","*"],
|
allow_origins=["*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class ApiConfig(DefaultApiConfig):
|
||||||
# Uvicorn server configuration
|
# Uvicorn server configuration
|
||||||
app = "app:app"
|
app = "app:app"
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 8888
|
port = 41576
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
reload = True
|
reload = True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||||
"""
|
"""
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["http://localhost:3000","*"],
|
allow_origins=["*"],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class ApiConfig(DefaultApiConfig):
|
||||||
# App configuration
|
# App configuration
|
||||||
app = "app:app"
|
app = "app:app"
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 8888
|
port = 41577
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
reload = True
|
reload = True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,72 +14,6 @@ from .lang_models import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
RedisValidation = dict(
|
|
||||||
NAME="AccountCluster",
|
|
||||||
PREFIX="/accounts",
|
|
||||||
URL="/dashboard?site=AccountCluster",
|
|
||||||
ICON="Building",
|
|
||||||
INFO={
|
|
||||||
"en": {
|
|
||||||
"page": "Account Records for reaching user all types account information",
|
|
||||||
},
|
|
||||||
"tr": {
|
|
||||||
"page": "Kullanıcı tüm hesap bilgilerine ulaşmak için Hesap Kayıtları",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
SUBCATEGORIES={
|
|
||||||
"/accounts/create": {
|
|
||||||
"SITE_URL": "/events/create?site=AccountCluster",
|
|
||||||
"COMPONENT": "Link",
|
|
||||||
"PREFIX_URL": "/accounts/create",
|
|
||||||
"INFO": {
|
|
||||||
"en": {
|
|
||||||
"page": "Create Account Records",
|
|
||||||
"actions": "Actions",
|
|
||||||
"table": "Table",
|
|
||||||
},
|
|
||||||
"tr": {
|
|
||||||
"page": "Hesap Kayıdı Oluştur",
|
|
||||||
"actions": "Aksiyonlar",
|
|
||||||
"table": "Tablo",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"INSTRUCTIONS": None,
|
|
||||||
},
|
|
||||||
"/accounts/list": {
|
|
||||||
"SITE_URL": "/events/dashboard?site=AccountCluster",
|
|
||||||
"COMPONENT": "Table",
|
|
||||||
"PREFIX_URL": "/accounts/list",
|
|
||||||
"INFO": {
|
|
||||||
"en": { "page": "List Account Records" },
|
|
||||||
"tr": { "page": "Hesap Kayıtlarını Listele" },
|
|
||||||
},
|
|
||||||
"INSTRUCTIONS": {
|
|
||||||
"headers": {
|
|
||||||
"store": True,
|
|
||||||
"url": "/validations/header",
|
|
||||||
"data": {
|
|
||||||
"event_code": "/accounts/list",
|
|
||||||
"asked_field": "headers",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"data": {
|
|
||||||
"store": True,
|
|
||||||
"url": "/accounts/list",
|
|
||||||
"data": {
|
|
||||||
"page": 1,
|
|
||||||
"limit": 1,
|
|
||||||
"order_by": "uu_id",
|
|
||||||
"order_type": "desc",
|
|
||||||
"query": None,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class ClustersPageInfo:
|
class ClustersPageInfo:
|
||||||
|
|
||||||
# Cluster Page Infos that are available for the client
|
# Cluster Page Infos that are available for the client
|
||||||
|
|
|
||||||
|
|
@ -1,47 +1,32 @@
|
||||||
services:
|
services:
|
||||||
initservice:
|
init-service:
|
||||||
container_name: initservice
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: DockerApiServices/InitServiceApi/Dockerfile
|
dockerfile: DockerApiServices/InitServiceApi/Dockerfile
|
||||||
|
|
||||||
authservice:
|
auth-service:
|
||||||
container_name: authservice
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: DockerApiServices/AuthServiceApi/Dockerfile
|
dockerfile: DockerApiServices/AuthServiceApi/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8081:8888"
|
- "8081:41575"
|
||||||
depends_on:
|
depends_on:
|
||||||
- initservice
|
- init-service
|
||||||
networks:
|
|
||||||
- wag-network
|
|
||||||
|
|
||||||
validationservice:
|
validation-service:
|
||||||
container_name: validationservice
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: DockerApiServices/ValidationServiceApi/Dockerfile
|
dockerfile: DockerApiServices/ValidationServiceApi/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8082:8888"
|
- "8082:41577"
|
||||||
depends_on:
|
depends_on:
|
||||||
- initservice
|
- init-service
|
||||||
networks:
|
|
||||||
- wag-network
|
|
||||||
|
|
||||||
eventservice:
|
event-service:
|
||||||
container_name: eventservice
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: DockerApiServices/EventServiceApi/Dockerfile
|
dockerfile: DockerApiServices/EventServiceApi/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8083:8888"
|
- "8083:41576"
|
||||||
depends_on:
|
depends_on:
|
||||||
- initservice
|
- init-service
|
||||||
networks:
|
|
||||||
- wag-network
|
|
||||||
|
|
||||||
networks:
|
|
||||||
wag-network:
|
|
||||||
name: wag-network
|
|
||||||
external: true
|
|
||||||
|
|
|
||||||
26
run.sh
26
run.sh
|
|
@ -1,26 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Check if wag-network exists
|
|
||||||
if ! docker network ls | grep -q "wag-network"; then
|
|
||||||
echo "Creating wag-network..."
|
|
||||||
docker network create wag-network
|
|
||||||
else
|
|
||||||
echo "wag-network already exists"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Bring down existing containers
|
|
||||||
echo "Stopping and removing existing containers..."
|
|
||||||
docker compose down --remove-orphans
|
|
||||||
|
|
||||||
# Build and start containers
|
|
||||||
echo "Building and starting containers..."
|
|
||||||
docker compose -f docker-compose-services.yml up --build -d
|
|
||||||
|
|
||||||
# Add container to wag-network
|
|
||||||
echo "Adding container to wag-network..."
|
|
||||||
docker container inspect authservice > /dev/null && docker network connect wag-network authservice
|
|
||||||
docker container inspect eventservice > /dev/null && docker network connect wag-network eventservice
|
|
||||||
docker container inspect validationservice > /dev/null && docker network connect wag-network validationservice
|
|
||||||
|
|
||||||
# Run migrations
|
|
||||||
echo "Setup complete! Backend Services Auth | Event | Validation are running..."
|
|
||||||
Loading…
Reference in New Issue