restart policy
This commit is contained in:
1 parent
d852913692
commit
276a09fbf6
2 files changed
+8
-2
No files matched your search
@@ -1,10 +1,10 @@
|
|||||||
from app.core.models import Asset
|
from app.core.models import BlockchainTask
|
||||||
from app.core.models.base import AlchemyBase
|
from app.core.models.base import AlchemyBase
|
||||||
|
|
||||||
|
|
||||||
def create_maria_tables(engine):
|
def create_maria_tables(engine):
|
||||||
"""Create all tables in the database."""
|
"""Create all tables in the database."""
|
||||||
Asset()
|
BlockchainTask()
|
||||||
AlchemyBase.metadata.create_all(engine)
|
AlchemyBase.metadata.create_all(engine)
|
||||||
|
|
||||||
|
|
||||||
@@ -8,6 +8,7 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- /Storage/sqlStorage:/var/lib/mysql
|
- /Storage/sqlStorage:/var/lib/mysql
|
||||||
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
|
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -21,6 +22,7 @@ services:
|
|||||||
command: python -m app
|
command: python -m app
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
restart: always
|
||||||
links:
|
links:
|
||||||
- maria_db
|
- maria_db
|
||||||
ports:
|
ports:
|
||||||
@@ -36,6 +38,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
restart: always
|
||||||
command: python -m app indexer
|
command: python -m app indexer
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
@@ -53,6 +56,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
command: python -m app ton_daemon
|
command: python -m app ton_daemon
|
||||||
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
links:
|
links:
|
||||||
@@ -69,6 +73,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
command: python -m app license_index
|
command: python -m app license_index
|
||||||
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
links:
|
links:
|
||||||
@@ -85,6 +90,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
command: python -m app convert_process
|
command: python -m app convert_process
|
||||||
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
links:
|
links:
|
||||||
|
|||||||
Reference in new issue
Block a user