Public Repository

Last pushed: 12 days ago
Short Description
Lisk Mainnet Docker Image
Full Description

Stable version

Please refer to https://lisk.io/documentation/core/installation/docker-main-network


next version

This is the upcoming version and might not work, see above for the older but stable version.

Example docker-compose.yml file for the next version:

version: "2"
services:

  lisk:
    image: lisk/mainnet:next
    volumes:
      - lisk-logs:/home/lisk/lisk/logs/
    ports:
      - "8000:8000"
    networks:
      - lisk-main
    depends_on:
      - db
    restart: on-failure
    command: ["/home/lisk/wait-for-it.sh", "db:5432", "--", "/home/lisk/run.sh"]
    environment:
      - LISK_CONFIG_CONSOLE_LOG_LEVEL=warn
      - LISK_CONFIG_DB_DATABASE=lisk_main

  db:
    image: postgres:9.6-alpine
    volumes:
      - db-data:/var/lib/postgresql/data
    networks:
      - lisk-main
    restart: on-failure
    environment:
      - POSTGRES_DB=lisk_main
      - POSTGRES_PASSWORD=password
      - POSTGRES_USER=lisk

  task:
    image: postgres:9.6-alpine
    networks:
      - lisk-main
    environment:
      - PGUSER=lisk
      - PGPASSWORD=password
      - PGDATABASE=lisk_main
      - PGHOST=db
    command: /bin/true

networks:
  lisk-main:

volumes:
  db-data:
  lisk-logs:

Example usage with Docker Compose:

pull latest version and create/update all containers

docker-compose pull
docker-compose up -d

coldstart lisk

curl -O https://downloads.lisk.io/lisk/main/blockchain.db.gz
docker-compose stop lisk
docker-compose start db
docker-compose run task dropdb --if-exists lisk_main
docker-compose run task createdb lisk_main
gzip --decompress --to-stdout blockchain.db.gz |docker-compose run task psql >/dev/null
docker-compose start lisk
Docker Pull Command
Owner
lisk