diff --git a/Dockerfile b/Dockerfile index 860ad7ea..848616a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,9 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ FROM debian:bullseye-slim -COPY --from=builder /usr/local/cargo/bin/web3-proxy /usr/local/bin/web3-proxy -ENTRYPOINT ["web3-proxy"] +COPY --from=builder /usr/local/cargo/bin/web3_proxy /usr/local/bin/web3_proxy +COPY --from=builder /usr/local/cargo/bin/web3_proxy_cli /usr/local/bin/web3_proxy_cli +ENTRYPOINT ["web3_proxy"] # TODO: lower log level when done with prototyping ENV RUST_LOG "web3_proxy=debug" diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index b620b068..1026073b 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -7,7 +7,22 @@ services: redis: build: ./redis-cell-server/ - # TODO: database and adminer + db: + image: mysql + environment: + MYSQL_ROOT_PASSWORD: web3_proxy + MYSQL_DATABASE: web3_proxy + ports: + - 127.0.0.1:3306:3306 + volumes: + - ./data/prod_mysql:/var/lib/mysql + + adminer: + image: adminer + ports: + - 8306:8080 + environment: + ADMINER_DEFAULT_SERVER: db arbitrum: extends: