From 5113a2410437fcfe4d7f448b8090b2a0617e8e4f Mon Sep 17 00:00:00 2001 From: zhouop0 <11733741+zhouop0@users.noreply.github.com> Date: Tue, 6 Aug 2024 15:53:58 +0800 Subject: [PATCH] update deploy --- deploy/config.yml | 6 ++--- deploy/docker-compose-meiliSearch.yml | 26 ++++++++++++++++++++ deploy/docker-compose.yml | 34 --------------------------- 3 files changed, 29 insertions(+), 37 deletions(-) create mode 100644 deploy/docker-compose-meiliSearch.yml diff --git a/deploy/config.yml b/deploy/config.yml index 7c52c46..15d0f20 100644 --- a/deploy/config.yml +++ b/deploy/config.yml @@ -6,13 +6,13 @@ progress: source: type: mysql host: localhost - port: 3366 + port: 3367 user: root password: root database: dispute_explorer meilisearch: - api_url: http://localhost:7700 - api_key: 6914dc950098e39609cafc9abbced1cd02d7509b54b7ad1cd18ced8cad01f9be + api_url: http://localhost:7701 + api_key: 2b85b8c251421e43808ee9e20e34e6b001268cee726845d3ba9b40a83fa728e9 sync: - table: dispute_game index: disputegame diff --git a/deploy/docker-compose-meiliSearch.yml b/deploy/docker-compose-meiliSearch.yml new file mode 100644 index 0000000..78c65f9 --- /dev/null +++ b/deploy/docker-compose-meiliSearch.yml @@ -0,0 +1,26 @@ +version: "3" + +services: + meiliSearch: + container_name: meilisearch + image: getmeili/meilisearch:v1.8 + depends_on: + - mysql + - node1 + environment: + - MEILI_MASTER_KEY=123456 + ports: + - "7701:7700" + volumes: + - ./meili_data:/meili_data + + meiliSync: + platform: linux/x86_64 + image: long2ice/meilisync:sha-fc1877d + depends_on: + - mysql + - node1 + - meiliSearch + volumes: + - ./config.yml:/meilisync/config.yml + network_mode: host diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 1594f4a..bdee621 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -21,42 +21,8 @@ services: - mysql env_file: - ../.env -# environment: -# LOG_LEVEL: "info" -# LOG_FORMAT: "console" -# MYSQL_DATA_SOURCE: "root:root@tcp(127.0.0.1:3367)/dispute_explorer?charset=utf8mb4&parseTime=True&loc=Local&multiStatements=true" -# MYSQL_MAX_IDLE_CONNS: "10" -# MYSQL_MAX_OPEN_CONNS: "20" -# MYSQL_CONN_MAX_LIFETIME: "3600" -# BLOCKCHAIN: "sepolia" -# L1_RPC_URL: "https://quaint-white-season.ethereum-sepolia.quiknode.pro/b5c30cbb548d8743f08dd175fe50e3e923259d30" -# FROM_BLOCK_NUMBER: "6034337" -# FROM_BLOCK_HASH: "0xafc3e42c5899591501d29649ffef0bfdec68f8d77e6d44ee00ef88cfb1a2f163" -# DISPUTE_GAME_PROXY_CONTRACT: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1" network_mode: host - meiliSearch: - container_name: meilisearch - image: getmeili/meilisearch:v1.8 - depends_on: - - mysql - - node1 - environment: - - MEILI_MASTER_KEY=123456 - ports: - - "7700:7700" - volumes: - - ./meili_data:/meili_data - meiliSync: - platform: linux/x86_64 - image: long2ice/meilisync:sha-fc1877d - depends_on: - - mysql - - node1 - - meiliSearch - volumes: - - ./config.yml:/meilisync/config.yml - network_mode: host