Deploy the DocPortal
Deployment on your own server is supported using Docker version 20.10 or higher.
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.
You can set additional parameters, such as automatic catalog synchronization or connecting Matomo. For more information, see Deploy with Docker.