prod config

This commit is contained in:
Bryan Stitt 2022-08-06 05:38:19 +00:00
parent 3cd463127b
commit 289d6e0249
2 changed files with 19 additions and 3 deletions

@ -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"

@ -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: