{"id":28075186,"url":"https://github.com/kiwijos/koha-docker","last_synced_at":"2026-07-08T17:31:07.138Z","repository":{"id":292708114,"uuid":"981486145","full_name":"kiwijos/koha-docker","owner":"kiwijos","description":"This project is part of my thesis at Blekinge Institute of Technology (BTH) about developing a Docker-based solution for Koha ILS.","archived":false,"fork":false,"pushed_at":"2025-05-11T17:23:37.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T00:55:11.405Z","etag":null,"topics":["docker","koha","s6-overlay"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiwijos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-11T08:08:52.000Z","updated_at":"2025-05-11T17:23:41.000Z","dependencies_parsed_at":"2025-05-11T18:30:35.677Z","dependency_job_id":"14b4b8a7-4706-4139-ac60-7c24f1d8a095","html_url":"https://github.com/kiwijos/koha-docker","commit_stats":null,"previous_names":["kiwijos/koha-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kiwijos/koha-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwijos%2Fkoha-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwijos%2Fkoha-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwijos%2Fkoha-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwijos%2Fkoha-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiwijos","download_url":"https://codeload.github.com/kiwijos/koha-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwijos%2Fkoha-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281157489,"owners_count":26453248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","koha","s6-overlay"],"created_at":"2025-05-13T00:55:10.255Z","updated_at":"2025-10-26T19:17:15.880Z","avatar_url":"https://github.com/kiwijos.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koha Docker\n\nA Docker setup for running Koha, the open-source integrated library system.\n\n## Overview\n\nThis project provides a containerized environment for running Koha using Docker Compose. It includes these services:\n\n- **Koha**: The main application container running Koha ILS on Debian with Apache\n- **MariaDB**: Database server for storing Koha data\n- **Memcached**: Caching service to improve Koha performance\n- **RabbitMQ**: Message broker for background tasks\n\nThe setup uses S6 Overlay for process supervision within the Koha container, allowing fine-grained control over multiple processes.\n\n## Quick Start\n\n1. Clone this repository:\n   ```\n   git clone \u003crepository-url\u003e\n   cd koha-docker\n   ```\n\n2. Start the containers:\n   ```\n   docker-compose up -d\n   ```\n\n(The `-d` flag runs the containers in detached mode. It might be educational to start without `-d` and watch the logs.)\n\n3. Access Koha Staff interface at:\n    ```\n    http://localhost:8080\n    ```\n\n4. Login with the default credentials:\n   - Username: `koha_\u003cinstance\u003e` (e.g., `koha_test`)\n   - Password: `supersecret`\n\n5. Follow the on-screen instructions to set up your Koha instance.\n\n6. Now you can access the Koha OPAC (Online Public Access Catalog) at:\n   ```\n   http://localhost:8081\n   ```\n\n## Configuration\n\nAll configuration options are available in the [`.env` file](.env). You can modify this file directly or create a custom `.env` file to override specific settings.\n\nSome users may also want to set environment variables temporarily with the `--env` flag for quick testing.\n\n### Key Configuration Options\n\n#### Koha Instance\n```\nKOHA_INSTANCE=test                # Name of the Koha instance and database\n```\n\nTip: Make the name distinctive, perhaps by using the name of your library, institution, or a project.\n\n#### Network Configuration\n```\nKOHA_INTRANET_PORT=8080           # Port for staff interface\nKOHA_OPAC_PORT=8081               # Port for public interface\n```\n\n#### Database Settings\n```\nMYSQL_PASSWORD=supersecret        # Change this for production!\nMYSQL_ROOT_PASSWORD=root          # Change this for production!\n```\n\n#### Localization\n```\nKOHA_LANGS=sv-SE ar-Arab          # Languages to install besides English\nTZ=Europe/Stockholm               # Timezone\n```\n\n#### Service Versions\n```\nMEMCACHED_VERSION=1.6.38-bookworm\nRABBITMQ_VERSION=4.1.0-alpine\nMARIADB_VERSION=10.6.21-focal\n```\n\n## Service Information\n\n### Koha Container\n\nThe main Koha container runs the ILS software with the following components:\n\n- **Apache Web Server**: Serves both staff and public interfaces\n- **Zebra**: Handles search and indexing for the catalog\n- **Plack**: Improves web server performance\n- **Cron**: Manages scheduled tasks\n- **Workers**: Process background jobs\n\nThe container uses S6 Overlay to manage these multiple processes efficiently.\n\n### Database (MariaDB)\n\nStores all Koha data:\n\n- Bibliographic records\n- Patron information\n- System configuration\n- And more...\n\nData is persisted in a Docker volume.\n\nTo start fresh, you can remove the volume:\n```\ndocker-compose down --volumes\n```\n\nMariaDB automatically creates a database and user for Koha on image startup. The names are derived from the `KOHA_INSTANCE` variable and should not be changed directly.\n\n### Memcached\n\nCan improve Koha performance by caching.\n\nCurrently, the default settings are used. For a full list of options, refer to the official documentation,\nor run `memcached -h` or `man memcached` inside the container.\n\n```\n# In docker-compose.yml\nmemcached:\n  command:\n    - --conn-limit=1024\n    - --memory-limit=64\n    - --threads=4   \n```\n\n### RabbitMQ\n\nStreams messages to manage background tasks. It talks with Koha using the STOMP protocol.\n\n## Additional Configuration\n\n### Custom Languages\n\nTo add additional languages:\n\n1. Edit the `KOHA_LANGS` variable in `default.env`\n2. Restart the containers\n\n## Maintenance\n\n### Updating Koha\n\nTo update to a newer version:\n\nEdit the `KOHA_VERSION` in `koha/Dockerfile` and rebuild the containers:\n```\ndocker-compose build --no-cache\ndocker-compose up -d\n```\nYou can also specify a different version temporarily using the `--build-arg` flag:\n```\ndocker-compose build --build-arg KOHA_VERSION=\u003cnew-version\u003e\n```\n\n## Development\n\nThe project structure is currently organized as follows:\n\n```\nkoha-docker/\n├── default.env                # Environment variables\n├── docker-compose.yml         # Service definitions\n├── koha/\n│   ├── Dockerfile             # Koha container definition\n│   ├── docker/                # Configuration files etc.\n│   └── rootfs/                # Overlay filesystem\n└── rabbitmq-plugins    \n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request or send me an email with suggestions.\n\n## License\n\nThis project is licensed under GPL3 - see the [LICENSE file](LICENSE) for details.\n\nUsing GPL3 ensures we're complying with the licenses of Koha and the previous Docker implementations we're building on. It maintains the same open-source spirit.\n\n## Acknowledgments\n\n- Koha Community for the continuous development of Koha\n- This implementation is based on two other Koha + Docker implementations:\n  - [teogramm/koha-docker](https://github.com/teogramm/koha-docker)\n  - [koha-community/docker/koha-docker](https://gitlab.com/koha-community/docker/koha-docker/-/tree/main?ref_type=heads)\n- Docker and container ecosystem maintainers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwijos%2Fkoha-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiwijos%2Fkoha-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwijos%2Fkoha-docker/lists"}