Docker Compose for aptos docker
Meant to be used with central-proxy-docker for traefik
and Prometheus remote write; use :ext-network.yml in COMPOSE_FILE inside .env in that case.
If you want the RPC ports exposed locally, use rpc-shared.yml in COMPOSE_FILE inside .env.
The ./aptosd script can be used as a quick-start:
./aptosd install brings in docker-ce, if you don't have Docker installed already.
cp default.env .env
nano .env and adjust variables as needed.
./aptosd up
To update the software, run ./aptosd update and then ./aptosd up
custom.yml is not tracked by git and can be used to override anything in the provided yml files. If you use it,
add it to COMPOSE_FILE in .env
Run:
./aptosd check-sync
Default check-sync settings:
- compose service:
aptos - local RPC:
http://127.0.0.1:${API_PORT:-8080}/v1 - public RPC:
https://api.mainnet.aptoslabs.com/v1 - lag threshold:
2blocks
You can override defaults with:
./scripts/check_sync.sh --compose-service aptos --local-rpc <url> --public-rpc <url> --block-lag <n> --env-file <path>
aptos docker Docker uses a semver scheme.
This is aptos docker Docker v1.0.0