-
Notifications
You must be signed in to change notification settings - Fork 94
/
rails_with_postgresql_and_redis.pmx
48 lines (44 loc) · 1.38 KB
/
rails_with_postgresql_and_redis.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
---
name: Rails with PostgreSQL and Redis
description: Prepared Application Template for a Rails container having access to
both an PostgreSQL and Redis. With this template you can use Resque workers and
connect them to the Redis instance.
keywords: Rails, PostgreSQL, Redis, Resque
type: Rails
documentation: |
Rails with PostgreSQL
=========
##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: DB_1
source: dharmamike/pmx-pgsql:latest
category: DB Tier
type: Default
ports:
- host_port: '5432'
container_port: '5432'
- name: Rails
source: dharmamike/pmx-rails:latest
category: Web Tier
type: Default
ports:
- host_port: '8080'
container_port: '3000'
proto: ''
links:
- service: DB_1
alias: DB_1
- service: redis
alias: redis
- name: redis
source: redis:latest
category: DB Tier
type: Default
ports:
- host_port: '6379'
container_port: '6379'
proto: TCP