Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: one key deploy #10

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading