28 lines
666 B
YAML
28 lines
666 B
YAML
version: "3"
|
|
|
|
services:
|
|
mariadb:
|
|
image: mariadb:latest
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${DB_PASS}
|
|
MYSQL_DATABASE: ${DB_NAME}
|
|
volumes:
|
|
- database:/var/lib/mysql
|
|
restart: always
|
|
web:
|
|
image: tuxgasy/dolibarr
|
|
environment:
|
|
DOLI_DB_HOST: mariadb
|
|
DOLI_DB_USER: root
|
|
DOLI_DB_PASSWORD: ${DB_PASS}
|
|
DOLI_DB_NAME: ${DB_NAME}
|
|
DOLI_URL_ROOT: ${DOLI_URL}
|
|
PHP_INI_DATE_TIMEZONE: ${TIME_ZONE}
|
|
restart: always
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- mariadb
|
|
volumes:
|
|
database:
|