forked from upshift-docker/dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (32 loc) · 828 Bytes
/
docker-compose.yml
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
30
31
32
33
34
35
36
version: '3'
volumes:
dolibarr_html:
dolibarr_docs:
dolibarr_db:
services:
mariadb:
image: mariadb:latest
restart: always
command: --character_set_client=utf8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- dolibarr_db:/var/lib/mysql
environment:
- MYSQL_DATABASE=dolibarr
- MYSQL_USER=dolibarr
- MYSQL_PASSWORD=dolibarr
- MYSQL_RANDOM_ROOT_PASSWORD=yes
dolibarr:
image: upshift/dolibarr:latest
restart: always
depends_on:
- mariadb
ports:
- 8080:80
environment:
- DOLI_DB_HOST=mariadb
- DOLI_DB_NAME=dolibarr
- DOLI_DB_USER=dolibarr
- DOLI_DB_PASSWORD=dolibarr
volumes:
- dolibarr_html:/var/www/html
- dolibarr_docs:/var/www/documents