-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (64 loc) · 1.97 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
version: '2'
services:
vsql:
build: vsql
expose:
- "3306"
# restart: always
volumes:
- vdb:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: t00r
MYSQL_DATABASE: civicrm
MYSQL_USER: civicrm
MYSQL_PASSWORD: mrcivic
vhttp:
# web server for a drupal + civicrm site
build: vhttp
# restart: always
expose:
- "80"
# provide all the (shared) php code as mounted volumes from the host
volumes:
- /var/www/drupal/git-7:/var/www/html:ro
- /var/www/civicrm/civicrm-${VSITE_CIVICRM_VER}:/var/www/html/sites/all/modules/civicrm:ro
- /var/www/drupal/7-modules:/var/www/html/sites/all/modules/contrib:ro
- vsite:/var/www/html/sites/default
links:
# access the virtual sql server as "db" in the /etc/hosts file
- "vsql:db"
environment:
VSITE_DOMAIN: ${VSITE_DOMAIN}
# USER: 99
# APACHE_RUN_USER=nobody
depends_on:
- vsql
install:
# create a new, empty site at this location.
# build a temporary super-set of the vhttp container above, run some scripts, and then exit.
# can be run independendently of the vhttp container.
build: install
# as above, provide all the (shared) php code as mounted volumes from the host
volumes:
- /var/www/drupal/git-7:/var/www/html:ro
- /var/www/civicrm/civicrm-${VSITE_CIVICRM_VER}:/var/www/html/sites/all/modules/civicrm:ro
- /var/www/drupal/7-modules:/var/www/html/sites/all/modules/contrib:ro
- vsite:/var/www/html/sites/default
links:
# access the virtual sql server as "db" in the /etc/hosts file
- "vsql:db"
environment:
#USER: 99
VSITE_PASS: ${VSITE_PASS}
VSITE_ADMIN: ${VSITE_ADMIN}
VSITE_NAME: ${VSITE_NAME}
VSITE_DOMAIN: ${VSITE_DOMAIN}
MYSQL_DATABASE: civicrm
MYSQL_USER: civicrm
MYSQL_PASSWORD: mrcivic
# MYSQL_ONETIME_PASSWORD
depends_on:
- vsql
volumes:
vsite:
vdb: