From 276a09fbf63a7bded49b008a865cb42a02b2fcb4 Mon Sep 17 00:00:00 2001 From: user Date: Thu, 13 Mar 2025 18:41:55 +0300 Subject: [PATCH] restart policy --- app/core/_utils/create_maria_tables.py | 4 ++-- docker-compose.yml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/core/_utils/create_maria_tables.py b/app/core/_utils/create_maria_tables.py index ed2a7cc..9ba16e5 100644 --- a/app/core/_utils/create_maria_tables.py +++ b/app/core/_utils/create_maria_tables.py @@ -1,10 +1,10 @@ -from app.core.models import Asset +from app.core.models import BlockchainTask from app.core.models.base import AlchemyBase def create_maria_tables(engine): """Create all tables in the database.""" - Asset() + BlockchainTask() AlchemyBase.metadata.create_all(engine) diff --git a/docker-compose.yml b/docker-compose.yml index dbe0334..b1e9b6f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,7 @@ services: - .env volumes: - /Storage/sqlStorage:/var/lib/mysql + restart: always healthcheck: test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ] interval: 10s @@ -21,6 +22,7 @@ services: command: python -m app env_file: - .env + restart: always links: - maria_db ports: @@ -36,6 +38,7 @@ services: build: context: . dockerfile: Dockerfile + restart: always command: python -m app indexer env_file: - .env @@ -53,6 +56,7 @@ services: context: . dockerfile: Dockerfile command: python -m app ton_daemon + restart: always env_file: - .env links: @@ -69,6 +73,7 @@ services: context: . dockerfile: Dockerfile command: python -m app license_index + restart: always env_file: - .env links: @@ -85,6 +90,7 @@ services: context: . dockerfile: Dockerfile command: python -m app convert_process + restart: always env_file: - .env links: