Skip to content

v1.1.0

Choose a tag to compare

@libraz libraz released this 16 Nov 18:52
· 448 commits to main since this release

Docker Images

This release includes multi-architecture Docker images:

Pull from GitHub Container Registry

docker pull ghcr.io/libraz/mygram-db:v1.1.0
docker pull ghcr.io/libraz/mygram-db:latest

Supported Architectures

  • linux/amd64
  • linux/arm64

Quick Start

# Using environment variables (recommended)
docker run -d --name mygramdb \
  -p 11016:11016 \
  -e MYSQL_HOST=your-mysql-host \
  -e MYSQL_USER=repl_user \
  -e MYSQL_PASSWORD=your_password \
  -e MYSQL_DATABASE=mydb \
  -e TABLE_NAME=articles \
  -e TABLE_PRIMARY_KEY=id \
  -e TABLE_TEXT_COLUMN=content \
  -e TABLE_NGRAM_SIZE=2 \
  -e REPLICATION_SERVER_ID=12345 \
  ghcr.io/libraz/mygram-db:v1.1.0

# Or using custom config file
docker run --rm ghcr.io/libraz/mygram-db:v1.1.0   cat /etc/mygramdb/config.yaml.example > config.yaml
# Edit config.yaml, then:
docker run -d --name mygramdb \
  -p 11016:11016 \
  -v $(pwd)/config.yaml:/etc/mygramdb/config.yaml:ro \
  -e SKIP_CONFIG_GEN=true \
  ghcr.io/libraz/mygram-db:v1.1.0 \
  mygramdb -c /etc/mygramdb/config.yaml