Sign inSign up

netlogic34/doliscan

By netlogic34

Updated about 1 year ago

Docker image for Doliscan with auto installer on first boot.

Image
0

309

netlogic34/doliscan repository overview

Doliscan on Docker

Docker image for Doliscan with auto installer on first boot.

Supported tags

master latest

Supported architectures

Linux x86-64 (amd64)

What is Doliscan ?

Doliscan est une application dont le périmètre est très basique : gérer les notes de frais et rien de plus.

How to run this image ?

This image is based on the official PHP repository.

Important: This image don't contains database. So you need to link it with a database container.

Let's use Docker Compose to integrate it with MariaDB (you can also use MySQL if you prefer).

Create docker-compose.yml file as following:

version: "3"

services:
    mariadb:
        image: mariadb:latest
        environment:
            MYSQL_ROOT_PASSWORD: root
            MYSQL_DATABASE: doliscan

    web:
        image: netlogic34/doliscan
        environment:
            DOLISCAN_DB_HOST: mariadb
            DOLISCAN_DB_USER: root
            DOLISCAN_DB_PASSWORD: root
            DOLISCAN_DB_NAME: doliscan
            DOLISCAN_URL_ROOT: 'http://0.0.0.0'
            PHP_INI_DATE_TIMEZONE: 'Europe/Paris'
        ports:
            - "80:80"
        links:
            - mariadb

Then run all services docker-compose up -d. Now, go to http://0.0.0.0 to access to the new Doliscan installation.

Other examples

You can find several examples in the examples directory, such as:

Upgrading version and migrating DB

Environment variables summary

VariableDefault valueDescription
DOLISCAN_INSTALL_AUTO11: The installation will be executed on first boot
DOLISCAN_PROD11: Doliscan will be run in production mode
DOLISCAN_DB_TYPEmysqliType of the DB server (mysqli, pgsql)
DOLISCAN_DB_HOSTmysqlHost name of the MariaDB/MySQL server
DOLISCAN_DB_HOST_PORT3306Host port of the MariaDB/MySQL server
DOLISCAN_DB_USERdoliDatabase user
DOLISCAN_DB_PASSWORDdoli_passDatabase user's password
DOLISCAN_DB_NAMEdolidbDatabase name
DOLISCAN_DB_COLLATIONutf8mb4_unicode_ciDatabase collation
DOLISCAN_DB_CHARACTER_SETutf8mb4Database character set
DOLISCAN_ADMIN_LOGINadminAdmin's login create on the first boot
DOLISCAN_ADMIN_PASSWORDadminAdmin'password
DOLISCAN_URL_ROOThttp://localhostUrl root of the Doliscan installation
DOLISCAN_ENABLE_MODULESComma-separated list of modules to be activated at install. modUser will always be activated. (Ex: Societe,Facture,Stock)
PHP_INI_DATE_TIMEZONEUTCDefault timezone on PHP
PHP_INI_MEMORY_LIMIT256MPHP Memory limit
PHP_INI_UPLOAD_MAX_FILESIZE16MPHP Maximum allowed size for uploaded files
PHP_INI_POST_MAX_SIZE16MPHP Maximum size of POST data that PHP will accept.
PHP_INI_ALLOW_URL_FOPEN0Allow URL-aware fopen wrappers
WWW_USER_IDID of user www-data. ID will not changed if leave empty. During a development, it is very practical to put the same ID as the host user.
WWW_GROUP_IDID of group www-data. ID will not changed if leave empty.
DOLISCAN_CRON01: Enable cron service
DOLISCAN_CRON_KEYSecurity key launch cron jobs
DOLISCAN_CRON_USERDoliscan user used for cron jobs
DOLISCAN_INSTANCE_UNIQUE_IDSecret ID used as a salt / key for some encryption. By default, it is set randomly when the docker container is created.

Some environment variables are compatible with docker secrets behaviour, just add the _FILE suffix to var name and point the value file to read. Environment variables that are compatible with docker secrets:

  • DOLISCAN_DB_USER => DOLISCAN_DB_USER_FILE
  • DOLISCAN_DB_PASSWORD => DOLISCAN_DB_PASSWORD_FILE
  • DOLISCAN_ADMIN_LOGIN => DOLISCAN_ADMIN_LOGIN_FILE
  • DOLISCAN_ADMIN_PASSWORD => DOLISCAN_ADMIN_PASSWORD_FILE
  • DOLISCAN_CRON_KEY => DOLISCAN_CRON_KEY_FILE
  • DOLISCAN_CRON_USER => DOLISCAN_CRON_USER_FILE
  • DOLISCAN_INSTANCE_UNIQUE_ID => DOLISCAN_INSTANCE_UNIQUE_ID_FILE

Tag summary

Content type

Image

Digest

sha256:592c2febf

Size

221.1 MB

Last updated

about 1 year ago

docker pull netlogic34/doliscan