-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
59 lines (55 loc) · 1.22 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
version: '3.1'
services:
civicrm:
image: civicrm
environment:
- DATABASE_HOST=mariadb
- DATABASE_PORT=3306
- DRUPAL_DB_NAME=drupal
- DRUPAL_DB_USERNAME=drupal
- DRUPAL_DB_PASSWORD=password
- CIVICRM_DB_NAME=civicrm
- CIVICRM_DB_USERNAME=civicrm
- CIVICRM_DB_PASSWORD=password
- TRUSTED_HOST=172.17.0.1:8080
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=password
ports:
- 8080:80
networks:
default:
deploy:
resources:
limits:
memory: 256M
restart_policy:
condition: on-failure
mode: global
mariadb:
image: samirkherraz/mariadb
environment:
- ROOT_PASSWORD=password
- DB_0_NAME=drupal
- DB_0_PASS=password
- DB_1_NAME=civicrm
- DB_1_PASS=password
ports:
- 3306:3306
- 8081:80
volumes:
- mariadb-data:/var/lib/mysql/
- mariadb-config:/etc/mysql/
networks:
default:
deploy:
resources:
limits:
memory: 256M
restart_policy:
condition: on-failure
mode: global
volumes:
mariadb-data:
mariadb-config: