Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
Support aws beanstalk
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi EungJun committed Apr 24, 2016
1 parent 92e0fd5 commit 1b1dc3c
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
60 changes: 60 additions & 0 deletions Dockerrun.aws.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"AWSEBDockerrunVersion": "2",
"volumes": [
{
"name": "app-config",
"host": {
"sourcePath": "/var/app/current/app/mattermost/config"
}
},
{
"name": "app-data",
"host": {
"sourcePath": "/var/app/current/app/mattermost/data"
}
},
{
"name": "db-data",
"host": {
"sourcePath": "/var/app/current/db/mattermost/var/lib/postgresql/data"
}
}
],
"containerDefinitions": [
{
"name": "app",
"image": "npcode/mattermost-app:latest",
"memory": 128,
"mountPoints": [
{
"sourceVolume": "app-config",
"containerPath": "/mattermost/config"
},
{
"sourceVolume": "app-data",
"containerPath": "/mattermost/data"
}
],
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"links": [
"db"
]
},
{
"name": "db",
"image": "npcode/mattermost-db:latest",
"memory": 128,
"mountPoints": [
{
"sourceVolume": "db-data",
"containerPath": "/var/lib/postgresql/data"
}
]
}
]
}
13 changes: 13 additions & 0 deletions README.aws.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Installation on AWS Elastic Beanstalk

### Requirement

* [The EB CLI](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html)

### Install

```
eb init
eb create prod
eb open prod
```
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Dockerfiles for Mattermost in production

See [README.aws.md](./README.aws.md) if you want to install it on AWS Elastic Beanstalk.

## Requirements

* [docker]
Expand Down

0 comments on commit 1b1dc3c

Please sign in to comment.