restart policy

This commit is contained in:
user 2025-03-13 18:41:55 +03:00
parent d852913692
commit 276a09fbf6
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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: