Docker

Using docker compose

If necessary, you can run SEEK in Docker together with MySQL and SOLR running in its own containers. To do this you use Docker Compose. See the Installation Guide for how to install.

Once installed, all you need is the docker-compose.yml, and the docker/db.env, although you can simply check out the SEEK source from GitHub - see Getting SEEK.

First you need to create 4 volumes

docker volume create --name=seek-filestore
docker volume create --name=seek-mysql-db
docker volume create --name=seek-solr-data
docker volume create --name=seek-cache

and then to start up, with the docker-compose.yml in your currently directory run

docker-compose up -d

and go to http://localhost:3000

to stop run

docker-compose down

You change the port, and image in the docker-compose.yml by editing

seek:
    ..
    ..
    image: fairdom/seek:1.3
    ..
    ..
    ports:
          - "3000:3000"

Alternatively to changing the port (particularly if running several instances on same machine), you can proxy through Apache or Nginx. E.g. for Nginx you would configure a virtual host like the following:

server {
    listen 80; 
    server_name www.my-seek.org;
    client_max_body_size 2G;
    
    location / {
        proxy_set_header   X-Real-IP $remote_addr;
        proxy_set_header   Host      $http_host;
        proxy_pass         http://127.0.0.1:3000;
    }
}