Skip to content

Commit

Permalink
Merge pull request #10 from optimism-java/deploy
Browse files Browse the repository at this point in the history
feat: one key deploy
  • Loading branch information
fearlessfe authored Sep 22, 2024
2 parents d09dcf0 + 2e041d1 commit a666742
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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_DATA_SOURCE=root:root@tcp(mysql:3306)/dispute_explorer?charset=utf8mb4&parseTime=True&loc=Local&multiStatements=true
BLOCKCHAIN=seplia
L1_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/lV2e-64nNnEMUA7UG0IT0uwjzlxEI512
L2_RPC_URL=https://opt-sepolia.g.alchemy.com/v2/FPgbOkDCgG8t0ppZ6TwZXLucr1wl_us4
Expand Down
20 changes: 14 additions & 6 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
version: "3"

services:

mysql:
container_name: mysql
image: mysql:8.0.28
image: mysql:8.4.2
environment:
MYSQL_ROOT_PASSWORD: "root"
restart: always
Expand All @@ -22,7 +21,8 @@ services:
- mysql
env_file:
- ../.env
network_mode: host
ports:
- "8080:8080"

meiliSearch:
container_name: meilisearch
Expand Down Expand Up @@ -50,6 +50,14 @@ services:
- ./config.yml:/meilisync/config.yml
network_mode: host




frontend:
image: ghcr.io/optimism-java/dispute-explorer-frontend:development
restart: on-failure
depends_on:
- mysql
- node1
- meiliSearch
environment:
- ADMIN_KEY=123456
ports:
- "8888:80"

0 comments on commit a666742

Please sign in to comment.