mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-29 18:53:10 +00:00
Logos Storage Docker Image
Logos Storage provides pre-built docker images and they are stored in the logosstorage/logos-storage-nim repository.
Run
We can run Logos Storage Docker image using CLI
# Default run
docker run --rm logosstorage/logos-storage-nim
# Mount local datadir
docker run -v ./datadir:/datadir --rm logosstorage/logos-storage-nim storage --data-dir=/datadir
And Docker Compose
# Run in detached mode
docker-compose up -d
Arguments
Docker image is based on the storage.Dockerfile and there is
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["storage"]
It means that at the image run it will just run storage application without any arguments and we can pass them as a regular arguments, by overriding command
docker run logosstorage/logos-storage-nim storage --api-bindaddr=0.0.0.0 --api-port=8080
Environment variables
We can configure Codex using Environment variables and docker-compose.yaml file can be useful as an example.
We also added a temporary environment variable NAT_IP_AUTO to the entrypoint which is set as false for releases and true for regular builds. That approach is useful for Dist-Tests.
# Disable NAT_IP_AUTO for regular builds
docker run -e NAT_IP_AUTO=false logosstorage/logos-storage-nim
Slim
- Build the image using
docker build -t logosstorage/logos-storage-nim:latest -f storage.Dockerfile .. - The docker image can then be minified using slim. Install slim on your path and then run:
slim # brings up interactive prompt >>> build --target status-im/codexsetup --http-probe-off true - This should output an image with name
status-im/codexsetup.slim - We can then bring up the image using
docker-compose up -d.