Docker image for Doliscan with auto installer on first boot.
309
Docker image for Doliscan with auto installer on first boot.
master latest
Linux x86-64 (amd64)
Doliscan est une application dont le périmètre est très basique : gérer les notes de frais et rien de plus.
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.
You can find several examples in the examples directory, such as:
| Variable | Default value | Description |
|---|---|---|
| DOLISCAN_INSTALL_AUTO | 1 | 1: The installation will be executed on first boot |
| DOLISCAN_PROD | 1 | 1: Doliscan will be run in production mode |
| DOLISCAN_DB_TYPE | mysqli | Type of the DB server (mysqli, pgsql) |
| DOLISCAN_DB_HOST | mysql | Host name of the MariaDB/MySQL server |
| DOLISCAN_DB_HOST_PORT | 3306 | Host port of the MariaDB/MySQL server |
| DOLISCAN_DB_USER | doli | Database user |
| DOLISCAN_DB_PASSWORD | doli_pass | Database user's password |
| DOLISCAN_DB_NAME | dolidb | Database name |
| DOLISCAN_DB_COLLATION | utf8mb4_unicode_ci | Database collation |
| DOLISCAN_DB_CHARACTER_SET | utf8mb4 | Database character set |
| DOLISCAN_ADMIN_LOGIN | admin | Admin's login create on the first boot |
| DOLISCAN_ADMIN_PASSWORD | admin | Admin'password |
| DOLISCAN_URL_ROOT | http://localhost | Url root of the Doliscan installation |
| DOLISCAN_ENABLE_MODULES | Comma-separated list of modules to be activated at install. modUser will always be activated. (Ex: Societe,Facture,Stock) | |
| PHP_INI_DATE_TIMEZONE | UTC | Default timezone on PHP |
| PHP_INI_MEMORY_LIMIT | 256M | PHP Memory limit |
| PHP_INI_UPLOAD_MAX_FILESIZE | 16M | PHP Maximum allowed size for uploaded files |
| PHP_INI_POST_MAX_SIZE | 16M | PHP Maximum size of POST data that PHP will accept. |
| PHP_INI_ALLOW_URL_FOPEN | 0 | Allow URL-aware fopen wrappers |
| WWW_USER_ID | ID 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_ID | ID of group www-data. ID will not changed if leave empty. | |
| DOLISCAN_CRON | 0 | 1: Enable cron service |
| DOLISCAN_CRON_KEY | Security key launch cron jobs | |
| DOLISCAN_CRON_USER | Doliscan user used for cron jobs | |
| DOLISCAN_INSTANCE_UNIQUE_ID | Secret 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_FILEDOLISCAN_DB_PASSWORD => DOLISCAN_DB_PASSWORD_FILEDOLISCAN_ADMIN_LOGIN => DOLISCAN_ADMIN_LOGIN_FILEDOLISCAN_ADMIN_PASSWORD => DOLISCAN_ADMIN_PASSWORD_FILEDOLISCAN_CRON_KEY => DOLISCAN_CRON_KEY_FILEDOLISCAN_CRON_USER => DOLISCAN_CRON_USER_FILEDOLISCAN_INSTANCE_UNIQUE_ID => DOLISCAN_INSTANCE_UNIQUE_ID_FILEContent type
Image
Digest
sha256:592c2febf…
Size
221.1 MB
Last updated
about 1 year ago
docker pull netlogic34/doliscan