This commit is contained in:
Nicolas SANS 2023-11-10 16:33:33 +01:00
commit 4f1e1be9fb
3 changed files with 20 additions and 10 deletions

4
.env.example Normal file
View File

@ -0,0 +1,4 @@
TIME_ZONE='Europe/Paris'
DOLI_URL='http://0.0.0.0'
DB_NAME="dolibarr"
DB_PASS="password"

1
.gitignore vendored
View File

@ -11,3 +11,4 @@
# Aptatio/Platformio specifics # Aptatio/Platformio specifics
secrets.ini secrets.ini
.env

View File

@ -4,19 +4,24 @@ services:
mariadb: mariadb:
image: mariadb:latest image: mariadb:latest
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: ${DB_PASS}
MYSQL_DATABASE: dolibarr MYSQL_DATABASE: ${DB_NAME}
volumes:
- database:/var/lib/mysql
restart: always
web: web:
image: tuxgasy/dolibarr image: tuxgasy/dolibarr
environment: environment:
DOLI_DB_HOST: mariadb DOLI_DB_HOST: mariadb
DOLI_DB_USER: root DOLI_DB_USER: root
DOLI_DB_PASSWORD: root DOLI_DB_PASSWORD: ${DB_PASS}
DOLI_DB_NAME: dolibarr DOLI_DB_NAME: ${DB_NAME}
DOLI_URL_ROOT: 'http://0.0.0.0' DOLI_URL_ROOT: ${DOLI_URL}
PHP_INI_DATE_TIMEZONE: 'Europe/Paris' PHP_INI_DATE_TIMEZONE: ${TIME_ZONE}
ports: restart: always
- "80:80" # ports:
links: # - "80:80"
depends_on:
- mariadb - mariadb
volumes:
database: