@@ -79,20 +79,35 @@ requires:
79
79
80
80
## Use with Docker
81
81
82
+ Either use the included docker-compose file, or run two containers from the commandline:
83
+ the app itself and a PostgreSQL database for it to store information in.
84
+
82
85
``` shell
83
- $ docker run -d -p 8080:8080 \
84
- -e AWS_REGION=< AWS_DEFAULT_REGION> \
85
- -e AWS_ACCESS_KEY_ID=< AWS_ACCESS_KEY_ID> \
86
- -e AWS_SECRET_ACCESS_KEY=< AWS_SECRET_ACCESS_KEY> \
87
- -e AWS_BUCKET=< terraform-bucket> \
88
- -e AWS_DYNAMODB_TABLE=< terraform-locks-table> \
89
- -e DB_PASSWORD=" mygreatpasswd" \
90
- --link postgres:db \
91
- camptocamp/terraboard:latest
86
+ # Set AWS credentials as environment variables:
87
+ export AWS_ACCESS_KEY_ID=< access_key>
88
+ export AWS_SECRET_ACCESS_KEY=< access_secret>
89
+ # Spin up the two containers and a network for them to communciate on:
90
+ docker network create terranet
91
+ docker run --name db \
92
+ -e POSTGRES_USER=gorm \
93
+ -e POSTGRES_DB=gorm \
94
+ -e POSTGRES_PASSWORD=" <mypassword>" \
95
+ --net terranet \
96
+ --restart=always postgres -d
97
+ docker run -p 8080:8080 \
98
+ -e AWS_REGION=" <region>" \
99
+ -e AWS_ACCESS_KEY_ID=" ${AWS_ACCESS_KEY_ID} " \
100
+ -e AWS_SECRET_ACCESS_KEY=" ${AWS_SECRET_ACCESS_KEY} " \
101
+ -e AWS_BUCKET=" <bucket>" \
102
+ -e AWS_DYNAMODB_TABLE=" <table>" \
103
+ -e DB_PASSWORD=" <mypassword>" \
104
+ --net terranet \
105
+ camptocamp/terraboard:latest
92
106
```
93
107
94
- and point your browser to http://localhost:8080
108
+ Then point your browser to http://localhost:8080 .
95
109
110
+ To use the included compose file, you will need to configure an [ OAuth application] ( https://developer.github.com/apps/building-oauth-apps/ ) .
96
111
97
112
## Use with Rancher
98
113
0 commit comments