refaktorálás javításai
This commit is contained in:
67
docker-compose.yml
Executable file → Normal file
67
docker-compose.yml
Executable file → Normal file
@@ -1,6 +1,7 @@
|
||||
# /opt/docker/dev/service_finder/docker-compose.yml
|
||||
services:
|
||||
# --- ADATBÁZIS ÉS API ---
|
||||
|
||||
# --- ADATBÁZIS MIGRÁCIÓ (Opcionális segéd) ---
|
||||
migrate:
|
||||
build: ./backend
|
||||
container_name: sf_migrate
|
||||
@@ -9,12 +10,14 @@ services:
|
||||
- ./backend:/app
|
||||
- /opt/docker/scripts:/opt/docker/scripts
|
||||
command: >
|
||||
bash -c "sleep 5 && alembic upgrade head && PYTHONPATH=/app python -m app.tests_internal.fixes.final_admin_fix"
|
||||
bash -c "sleep 2 && alembic upgrade head && PYTHONPATH=/app python -m app.tests_internal.fixes.final_admin_fix"
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
# Nem függünk a helyi postgres-től, mert az external
|
||||
restart: "no"
|
||||
|
||||
# --- KÖZPONTI API ---
|
||||
api:
|
||||
build: ./backend
|
||||
container_name: sf_api
|
||||
@@ -25,9 +28,8 @@ services:
|
||||
- ./backend:/app
|
||||
- /mnt/nas/app_data:/mnt/nas/app_data
|
||||
- ./static_previews:/app/static/previews
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
command: ["/bin/bash", "/app/app/scripts/pre_start.sh"]
|
||||
# Figyelem: A migráció nem blokkolja tovább az indulást!
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -40,16 +42,12 @@ services:
|
||||
count: all
|
||||
capabilities: [gpu]
|
||||
|
||||
|
||||
# --- SZERVIZ HADOSZTÁLY ---
|
||||
service_scout:
|
||||
build: ./backend
|
||||
container_name: sf_service_scout
|
||||
command: python -u -m app.workers.service.service_robot_1_scout_osm
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -60,25 +58,17 @@ services:
|
||||
container_name: sf_service_hunter
|
||||
command: python -u -m app.workers.service.service_robot_0_hunter
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
restart: unless-stopped
|
||||
# profiles: ["disabled"] # Ezzel a sorral letilthatod, hogy automatikusan elinduljon!
|
||||
|
||||
|
||||
service_researcher:
|
||||
build: ./backend
|
||||
command: python -u -m app.workers.service.service_robot_2_researcher
|
||||
deploy:
|
||||
replicas: 2
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -89,9 +79,6 @@ services:
|
||||
container_name: sf_service_enricher
|
||||
command: python -u -m app.workers.service.service_robot_3_enricher
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -102,9 +89,6 @@ services:
|
||||
container_name: sf_service_validator
|
||||
command: python -u -m app.workers.service.service_robot_4_validator_google
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -116,9 +100,6 @@ services:
|
||||
container_name: sf_vehicle_discovery
|
||||
command: python -u -m app.workers.vehicle.vehicle_robot_0_discovery_engine
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -129,9 +110,6 @@ services:
|
||||
container_name: sf_vehicle_hunter
|
||||
command: python -u -m app.workers.vehicle.vehicle_robot_1_catalog_hunter
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -143,9 +121,6 @@ services:
|
||||
command: python -m app.workers.vehicle.vehicle_robot_1_2_nhtsa_fetcher
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -156,23 +131,16 @@ services:
|
||||
command: python -m app.workers.vehicle.vehicle_robot_1_4_bike_hunter
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
|
||||
vehicle_researcher:
|
||||
build: ./backend
|
||||
# container_name: sf_vehicle_researcher
|
||||
command: python -u -m app.workers.vehicle.vehicle_robot_2_researcher
|
||||
deploy:
|
||||
replicas: 2
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -184,9 +152,6 @@ services:
|
||||
command: python -m app.workers.vehicle.vehicle_robot_1_5_heavy_eu
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -203,9 +168,6 @@ services:
|
||||
count: 1
|
||||
capabilities: [gpu]
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -216,9 +178,6 @@ services:
|
||||
container_name: sf_vehicle_vin_auditor
|
||||
command: python -u -m app.workers.vehicle.vehicle_robot_4_vin_auditor
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -230,9 +189,6 @@ services:
|
||||
container_name: sf_gb_vehicle_discovery
|
||||
command: python -u -m app.workers.vehicle.vehicle_robot_0_gb_discovery
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -243,9 +199,6 @@ services:
|
||||
container_name: sf_gb_vehicle_hunter
|
||||
command: python -u -m app.workers.vehicle.vehicle_robot_1_gb_hunter
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -257,9 +210,6 @@ services:
|
||||
container_name: sf_system_ocr
|
||||
command: python -u -m app.workers.ocr.robot_1_ocr_processor
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
@@ -272,9 +222,6 @@ services:
|
||||
container_name: sf_system_auditor
|
||||
command: python -u -m app.workers.system.system_robot_2_service_auditor
|
||||
env_file: .env
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- sf_net
|
||||
- shared_db_net
|
||||
|
||||
Reference in New Issue
Block a user