Skip to content

Commit

Permalink
update deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Aug 6, 2024
1 parent 11f2647 commit 5113a24
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 37 deletions.
6 changes: 3 additions & 3 deletions deploy/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 26 additions & 0 deletions deploy/docker-compose-meiliSearch.yml
Original file line number Diff line number Diff line change
@@ -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
34 changes: 0 additions & 34 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit 5113a24

Please sign in to comment.