-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.base.yaml
29 lines (29 loc) · 988 Bytes
/
compose.base.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
services:
base:
build:
args:
DOLIBARR_VERSION: ${DOLIBARR_VERSION:-latest}
MEMCACHED_ENABLED: ${DOLIBARR_MEMCACHED_ENABLED:-false}
XDEBUG_ENABLED: ${DOLIBARR_XDEBUG_ENABLED:-false}
context: .
tags:
- &tags soli/dolibarr:${DOLIBARR_VERSION:-latest}${DOLIBARR_MEMCACHED_ENABLED:+-memcached}${DOLIBARR_XDEBUG_ENABLED:+-xdebug}
env_file:
- ./tuxgasy/env/dolibarr.env
depends_on:
- postgres
environment:
DOLI_ADMIN_LOGIN_FILE: /run/secrets/dolibarr-admin-user
DOLI_ADMIN_PASSWORD_FILE: /run/secrets/dolibarr-admin-password
DOLI_DB_PASSWORD_FILE: /run/secrets/postgres-password
DOLI_DB_USER_FILE: /run/secrets/postgres-user
image: *tags
restart: unless-stopped
secrets:
- dolibarr-admin-password
- dolibarr-admin-user
- postgres-user
- postgres-password
volumes:
- dolibarr-docs:/var/www/documents
- dolibarr-custom:/var/www/html/custom