use host networking

This commit is contained in:
Bryan Stitt 2022-09-08 22:24:27 +00:00
parent 5cf49531de
commit c646ca9eab
3 changed files with 44 additions and 11 deletions

@ -3,4 +3,6 @@
# change to the project's root directory # change to the project's root directory
cd "${0%/*}/.." cd "${0%/*}/.."
export DOCKER_BUILDKIT=1
exec docker-compose -f docker-compose.prod.yml "$@" exec docker-compose -f docker-compose.prod.yml "$@"

@ -3,7 +3,7 @@ services:
# TODO: build in dev but use docker hub in prod? # TODO: build in dev but use docker hub in prod?
build: . build: .
restart: unless-stopped restart: unless-stopped
command: --config /config.toml --workers 32 command: --config /config.toml --workers 16
environment: environment:
#RUST_LOG: "info,web3_proxy=debug" #RUST_LOG: "info,web3_proxy=debug"
RUST_LOG: info RUST_LOG: info

@ -21,7 +21,10 @@ services:
adminer: adminer:
image: adminer image: adminer
ports: ports:
- 8306:8080 - mode: host
protocol: tcp
published: 8306
target: 8080
environment: environment:
ADMINER_DEFAULT_SERVER: db ADMINER_DEFAULT_SERVER: db
@ -32,7 +35,10 @@ services:
volumes: volumes:
- ./config/production-arbitrum.toml:/config.toml - ./config/production-arbitrum.toml:/config.toml
ports: ports:
- 7500:8544 - mode: host
protocol: tcp
published: 7500
target: 8544
# avalanche-c: # avalanche-c:
# extends: # extends:
@ -41,7 +47,10 @@ services:
# volumes: # volumes:
# - ./config/production-avalanche-c.toml:/config.toml # - ./config/production-avalanche-c.toml:/config.toml
# ports: # ports:
# - 7501:8544 # - mode: host
# protocol: tcp
# published: 7501
# target: 8544
bsc: bsc:
extends: extends:
@ -50,16 +59,23 @@ services:
volumes: volumes:
- ./config/production-bsc.toml:/config.toml - ./config/production-bsc.toml:/config.toml
ports: ports:
- 7502:8544 - mode: host
protocol: tcp
published: 7502
target: 8544
eth: eth:
extends: extends:
file: docker-compose.common.yml file: docker-compose.common.yml
service: base service: base
command: --config /config.toml --workers 72
volumes: volumes:
- ./config/production-eth.toml:/config.toml - ./config/production-eth.toml:/config.toml
ports: ports:
- 7503:8544 - mode: host
protocol: tcp
published: 7503
target: 8544
fantom: fantom:
extends: extends:
@ -68,7 +84,10 @@ services:
volumes: volumes:
- ./config/production-fantom.toml:/config.toml - ./config/production-fantom.toml:/config.toml
ports: ports:
- 7504:8544 - mode: host
protocol: tcp
published: 7504
target: 8544
gnosis: gnosis:
extends: extends:
@ -77,7 +96,10 @@ services:
volumes: volumes:
- ./config/production-gnosis.toml:/config.toml - ./config/production-gnosis.toml:/config.toml
ports: ports:
- 7505:8544 - mode: host
protocol: tcp
published: 7505
target: 8544
# goerli: # goerli:
# extends: # extends:
@ -86,7 +108,10 @@ services:
# volumes: # volumes:
# - ./config/production-goerli.toml:/config.toml # - ./config/production-goerli.toml:/config.toml
# ports: # ports:
# - 7506:8544 # - mode: host
# protocol: tcp
# published: 7506
# target: 8544
optimism: optimism:
extends: extends:
@ -95,7 +120,10 @@ services:
volumes: volumes:
- ./config/production-optimism.toml:/config.toml - ./config/production-optimism.toml:/config.toml
ports: ports:
- 7507:8544 - mode: host
protocol: tcp
published: 7507
target: 8544
polygon: polygon:
extends: extends:
@ -104,4 +132,7 @@ services:
volumes: volumes:
- ./config/production-polygon.toml:/config.toml - ./config/production-polygon.toml:/config.toml
ports: ports:
- 7508:8544 - mode: host
protocol: tcp
published: 7508
target: 8544