Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Docker images are distributed with 2 different container type. All images are hosted in docker hub https://hub.docker.com/u/6kare address.

Emakin Standalone Container

Emakin Standalone contains all required dependencies to run emakin. Standalone image should be used as testing purposes and it's not recommended for production usage.

docker run -p 80:80 6kare/emakin-standalone:latest

On container start default domain is automatically created with "admin@emakin.com" user and "admin" password. Application can be accessed from http://localhost address and host administration settings can be accessed from http://localhost/hostadm address.

Persisting Data

All stored application data is reset when container is restarted by default. If you need to persist application data docker mounts must be used store keep stored data between restarts.

docker run -p 80:80 --mount source=emakindata,target=/var/lib/postgresql/data --mount source=emakindata,target=/srv/basex/data 6kare/emakin-standalone:latest

Emakin Container

Emakin image only contains the application image and does not contain any other dependency. Other dependencies like database, redis etc should be configured externally. This image should be used for more advanced scenarios like docker compose or kubernetes.

docker run -p 80:80 6kare/emakin:latest

Environment Variables

External database connection can be specified with following environment variables if needed.

AK_DbProvider=Postgre
AK_DbConnStr=Host=databaseserver;Database=database;Username=user;Password=pass;

Compose File

Emakin container can be deployed with following docker compose file;

version: '3'
services:
    web:
        image: 6kare/emakin:latest
        ports:
            - "80:80"
            - "443:443"
            - "5000:5000"
        depends_on:
            - redis
            - postgre
            - basex
            - tika
        environment:
            - AK_DbProvider=Postgre
            - AK_DbConnStr=Host=postgre;Database=ALTIKARE;Username=ALTIKARE;Password=ALTIKARE;
            - AK_RedisConnStr=redis,allowAdmin=true
            - AK_BasexConnStr=http://admin:admin@basex:1984/
            - AK_TikaConnStr=http://tika:9998/tika
    postgre:
        image: "postgres"
        restart: always
        volumes:
            # - "/var/run/postgres/postgres.sock:/var/run/postgres/postgres.sock"
            - "pgdata:/var/lib/postgresql/data"
        environment:
            - POSTGRES_USER=ALTIKARE
            - POSTGRES_PASSWORD=ALTIKARE
            - POSTGRES_DB=ALTIKARE
    redis:
        image: "redis:alpine"
        expose:
            - "6379"
    basex:
        image: "basex/basexhttp"
        expose:
            - "1984"
        volumes:
            - "basexdata:/srv/basex/data"
    tika:
        image: "6kare/tika"
        restart: always
        expose:
          - 9998
volumes:
    pgdata:
    basexdata:

  • No labels