-
Notifications
You must be signed in to change notification settings - Fork 94
/
devstl_protected_load-balanced_drupal_on_mysql.pmx
61 lines (55 loc) · 1.94 KB
/
devstl_protected_load-balanced_drupal_on_mysql.pmx
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
---
name: devstl Protected Load-Balanced Drupal on MySQL
description: Load-Balanced Drupal on MySQL with Anti-Virus
keywords: Drupal, MySQL, Anti-Virus, Load-Balanced
type: Drupal
documentation: |
Drupal 7.28 with MySQL
=========
##Instructions
Adjust the values of the environmental variables on the MySQL service to match your needs. When configuring Drupal via the UI, use these values.
For Database Address, use the MySQL service ALIAS value from your link entry on the Drupal service. This value is mapped to the IP of the MySQL container. No port is needed. Be sure to select **MySQL** as your database type when filling in the Drupal setup.
##Port Forwarding
To view the GUI after launching the template, map your local host machine to port _8080_. If using Virtual Box, use the following command in your terminal to create the port forwarding rule:
`VBoxManage controlvm panamax-vm natpf1 rule1,tcp,,8997,,8080`
Where, rule1 is the friendly name of the rule, tcp is the protocol. Replace port _8997_ with the local free port of your choice.
After you run this command locally, browse to **http://localhost:8997** to see the GUI, as per the example.
images:
- name: MySQL
source: centurylink/mysql:5.5
category: DB Tier
type: Default
environment:
- variable: MYSQL_ROOT_PASSWORD
value: pass@word
- variable: MYSQL_DATABASE
value: drupal
- variable: MYSQL_USER
value: user
- variable: MYSQL_PASSWORD
value: pass@word01
- name: Drupal_7.28
source: centurylink/drupal:7.28
category: Web Tier
type: Default
ports:
- host_port: '8080'
container_port: '80'
links:
- service: MySQL
alias: MYSQLDB
- name: nginx_1
source: nginx:latest
category: Load Balancer
type: Default
ports:
- host_port: '7777'
container_port: '80'
proto: TCP
links:
- service: Drupal_7.28
alias: Drupal_7.28
- name: blacktop_clamav_1
source: blacktop/clamav:latest
category: Load Balancer
type: Default