Important
This repository is not maintained. Use it at your own risks
Simple Dockerfile
s to run Koha.
cd master && docker-compose up
Then go to http://localhost:3000 to run the install process. OPAC is accessible at http://localhost:3001
docker network create koha
docker run -d --name elasticsearch --network koha \
-e discovery.type=single-node koha/elasticsearch-icu:6.x
docker run -d --name memcached --network koha memcached
docker run -d --name db --network koha \
-e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=koha \
-e MYSQL_USER=koha -e MYSQL_PASSWORD=koha mariadb
docker build --tag koha:master master
docker run -d --name koha-intranet --network koha -p 3000:3000 koha:master
docker run -d --name koha-opac --network koha -p 3001:3000 koha:master bin/opac prefork
Then go to http://localhost:3000 to run the install process. OPAC is accessible at http://localhost:3001
For the search to work, two additional steps are required:
- Set syspref
SearchEngine
toElasticsearch
docker exec koha-intranet perl misc/search_tools/rebuild_elasticsearch.pl -d
The name of the container (koha-intranet
) might differ if you used docker-compose
MySQL hostname.
Default is db
.
MySQL port.
Default is 3306
.
MySQL database name.
Default is koha
.
MySQL user.
Default is koha
.
MySQL password.
Default is koha
.
Memcached server URL.
Default is memcached:11211
Memcached namespace
Default is KOHA
Elasticsearch server URL.
Default is elasticsearch:9200
Elasticsearch index name.
Default is koha
docker build --tag koha:master master
docker run -d \
-e MYSQL_HOST=mariadb \
-e MYSQL_PORT=3307 \
-e MYSQL_DATABASE=koha_master \
-e MYSQL_USER=koha_master \
-e MYSQL_PASSWORD=Secr3t! \
-e MEMCACHED_SERVER=memcached:22122 \
-e MEMCACHED_NAMESPACE=koha_master
-e ELASTICSEARCH_SERVER=elasticsearch6:9200 \
-e ELASTICSEARCH_INDEX_NAME=koha_master
--name koha-intranet --network koha -p 3000:3000 koha:master
docker run -d \
-e MYSQL_HOST=mariadb \
-e MYSQL_PORT=3307 \
-e MYSQL_DATABASE=koha_master \
-e MYSQL_USER=koha_master \
-e MYSQL_PASSWORD=Secr3t! \
-e MEMCACHED_SERVER=memcached:22122 \
-e MEMCACHED_NAMESPACE=koha_master
-e ELASTICSEARCH_SERVER=elasticsearch6:9200 \
-e ELASTICSEARCH_INDEX_NAME=koha_master
--name koha-opac --network koha -p 3001:3000 koha:master bin/opac prefork