This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
/
docker-compose.yml
87 lines (82 loc) · 2.65 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# This docker-compose.yml file is used to build and test quickly
# a specific version of Dolibarr
#
# Before build, define the variable DOLI_VERSION as following:
# $ export DOLI_VERSION=4.0.4
# And then, you can run :
# $ docker-compose up
#
# More information about Docker-compose : https://docs.docker.com/compose/
networks:
internal-pod:
internal: true
external-pod:
internal: false
secrets:
mysql-user:
file: ./examples/with-secrets/secrets/mysql_user.secret
mysql-password:
file: ./examples/with-secrets/secrets/mysql_password.secret
services:
mariadb:
image: mariadb:latest
secrets:
- mysql-user
- mysql-password
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "1"
MYSQL_DATABASE: "dolibarr"
MYSQL_USER_FILE: "/run/secrets/mysql-user"
MYSQL_PASSWORD_FILE: "/run/secrets/mysql-password"
networks:
- internal-pod
cron:
build:
context: ./docker-compose-links/${DOLI_VERSION}${PHP_VERSION}
image: tuxgasy/dolibarr:${DOLI_VERSION}${PHP_VERSION}
secrets:
- mysql-user
- mysql-password
environment:
DOLI_CRON: 1
DOLI_CRON_KEY: xxxx
DOLI_CRON_USER: administrator
DOLI_INSTANCE_UNIQUE_ID: xxxx
DOLI_DB_USER_FILE: /run/secrets/mysql-user
DOLI_DB_PASSWORD_FILE: /run/secrets/mysql-password
DOLI_ADMIN_LOGIN: administrator
DOLI_ADMIN_PASSWORD: admin456
DOLI_DB_HOST: mariadb
DOLI_DB_NAME: dolibarr
DOLI_URL_ROOT: http://0.0.0.0
WWW_USER_ID: 1000
WWW_GROUP_ID: 1000
networks:
- internal-pod
web:
build:
context: ./docker-compose-links/${DOLI_VERSION}${PHP_VERSION}
image: tuxgasy/dolibarr:${DOLI_VERSION}${PHP_VERSION}
secrets:
- mysql-user
- mysql-password
volumes:
- ./.volumes/dolibarr/custom:/var/www/html/custom
depends_on:
- mariadb
environment:
DOLI_INSTANCE_UNIQUE_ID: xxxx
DOLI_DB_USER_FILE: "/run/secrets/mysql-user"
DOLI_DB_PASSWORD_FILE: "/run/secrets/mysql-password"
DOLI_ADMIN_LOGIN: "administrator"
DOLI_ADMIN_PASSWORD: "admin456"
DOLI_DB_HOST: mariadb
DOLI_DB_NAME: dolibarr
DOLI_URL_ROOT: 'http://0.0.0.0'
WWW_USER_ID: 1000
WWW_GROUP_ID: 1000
ports:
- "80:80"
networks:
- internal-pod
- external-pod