This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
forked from themarshallproject/klaxon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request themarshallproject#136 from AlJohri/docker
add docker-compose, improve docker setup
- Loading branch information
Showing
5 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
# Running Klaxon with Docker | ||
|
||
*This guide is a work in progress.* | ||
## Development Quickstart | ||
|
||
1. Run the following commands: | ||
|
||
``` | ||
docker-compose up -d database | ||
docker-compose build app | ||
docker-compose run app rake db:create db:migrate | ||
docker-compose run app rake users:create_admin | ||
docker-compose up app | ||
open http://localhost:3000 | ||
``` | ||
|
||
2. Enter '[email protected]' in the email window. It should redirect you to a page that says: "Email Sent". | ||
|
||
3. In the console find where it says "Go to Dashboard ( ... )" and copy and paste the link into the browser. | ||
|
||
4. You'll now be logged in. The page should say "Watch Your First Item". | ||
|
||
## Expected environmental variables | ||
|
||
|
@@ -20,10 +37,10 @@ If you would like to use [Amazon SES](https://aws.amazon.com/ses/) instead to se | |
DATABASE_URL= | ||
SECRET_KEY_BASE= | ||
ADMIN_EMAILS= | ||
SMTP_PROVIDER=AMAZON_SES | ||
AMAZON_SES_ADDRESS= | ||
AMAZON_SES_USERNAME= | ||
AMAZON_SES_PASSWORD= | ||
AMAZON_SES_DOMAIN= | ||
EMAIL_FROM_ADDRESS= | ||
SMTP_PROVIDER=SES | ||
SES_ADDRESS= | ||
SES_USERNAME= | ||
SES_PASSWORD= | ||
SES_DOMAIN= | ||
MAILER_FROM_ADDRESS= | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '2.2' | ||
|
||
services: | ||
|
||
database: | ||
image: "postgres:9.6" | ||
|
||
app: | ||
ports: ["3000:3000"] | ||
environment: | ||
RACK_ENV: "development" | ||
RAILS_ENV: "development" | ||
DATABASE_URL: "postgres://postgres@database/klaxon" | ||
SECRET_KEY_BASE: "secret_key_base" | ||
ADMIN_EMAILS: "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: '2.2' | ||
|
||
services: | ||
|
||
app: | ||
build: . | ||
environment: | ||
RACK_ENV: | ||
RAILS_ENV: | ||
DATABASE_URL: | ||
SECRET_KEY_BASE: | ||
ADMIN_EMAILS: | ||
|
||
# SENDGRID or SES | ||
SMTP_PROVIDER: | ||
|
||
# Sendgrid | ||
SENDGRID_USERNAME: | ||
SENDGRID_PASSWORD: | ||
|
||
# SES | ||
SES_ADDRESS: | ||
SES_USERNAME: | ||
SES_PASSWORD: | ||
SES_DOMAIN: | ||
SES_PORT: | ||
|
||
MAILER_FROM_ADDRESS: |