-
Notifications
You must be signed in to change notification settings - Fork 94
/
drupal_postgresql_clamav.pmx
50 lines (44 loc) · 1.77 KB
/
drupal_postgresql_clamav.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
---
name: drupal_postgresql_clamav
description: "drupal + postgresql = awesome.\r\nYou need to have AV though, if you're
going to accept user generated content (ugc). \r\n\r\nthis template give you awesome
+ responsibility = hawesome!"
keywords: ''
type: Drupal
documentation: |
Drupal 7.28 with PostgreSQL 9.3
=========
##Instructions
Adjust the values of the environmental variables on the PostgreSQL service to match your needs. When configuring Drupal via the UI, use these values.
For Database Address, use the PostgreSQL service ALIAS value from your link entry on the Drupal service. This value is mapped to the IP of the PostGreSQL container.No port is needed. Be sure to select **PostgreSQL** 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: PostgreSQL
source: paintedfox/postgresql:latest
category: DB
type: Default
environment:
- variable: USER
value: my_user
- variable: PASS
value: pass@word01
- variable: DB
value: drupal
- name: Drupal_7.28
source: centurylink/drupal:7.28
category: Web
type: Default
ports:
- host_port: '8080'
container_port: '80'
links:
- service: PostgreSQL
alias: POSTGRES
- name: blacktop_clamav
source: blacktop/clamav:latest
category: Web
type: Default