Deploy on Your Own Server
You can deploy the Documentation Portal for readers on your own server using the Gramax Docker image. Deployment in Docker is supported from version 20.10.
If you are deploying the portal using Podman:
Replace
dockerwithpodmanin all commands.Create a folder where all catalogs will be located. You can do this at the path specified in the
ROOT_PATHenvironment variable. If you haven't specified it, create a folder namedgramaxnext to thedocker-composefile.
Starting Up
Download the ready-made file using the command
curl -Lo docker-compose.yaml https://gram.ax/docportal-docker-compose.yaml.Set environment variables:
ROOT_PATH— path to the folder where catalogs will be cloned. If not specified, a folder namedgramaxwill be created.ADMIN_LOGIN— administrator login. If not specified,adminis used.ADMIN_PASSWORD— administrator password. If not specified,passwordis used.PORT— application port. If not specified, port 80 is used.DEFAULT_UI_LANGUAGE— overrides the default UI language. Available values:ru,en. If not specified, the preferred language is used.COOKIE_SECRET— key for encrypting user secrets in cookies. If not specified,.is used, but it is recommended to replace it with a 32-byte key (can be generated usingopenssl rand -hex 32).
Container Management
Start container:
docker compose up -d. Option-dis used for start the container in background.Stop container:
docker compose down.See logs:
docker logs -ftn 1000 gramax. The command will show last 1000 lines of logs. See docker / podman docs for additional info.To update, stop the container and run
docker compose pull && docker compose up -d.