Skip to content

Commit

Permalink
feat: Add docker compose for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Jun 7, 2021
1 parent 9fbf398 commit 7890b1f
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
22 changes: 22 additions & 0 deletions dist/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.9'
services:
webserver:
container_name: doubtfire-webserver
image: lmsdoubtfire/webserver:development
ports:
- "3000:3000"
depends_on:
- database
env_file:
- doubtfire-base.env
volumes:
- ./student-work:/student-work
pdfgen:
container_name: doubtfire-pdfgen
image: lmsdoubtfire/pdfgen:development
depends_on:
- database
env_file:
- doubtfire-base.env
volumes:
- ./student-work:/student-work
50 changes: 50 additions & 0 deletions dist/doubtfire-base.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# Rails environment
#
RAILS_ENV=production

# Database settings
DF_PRODUCTION_DB_ADAPTER=mysql2
DF_PRODUCTION_DB_HOST=doubtfire-database
DF_PRODUCTION_DB_DATABASE=doubtfire
DF_PRODUCTION_DB_USERNAME=dfire
DF_PRODUCTION_DB_PASSWORD=pwd

# Database settings - for development env
DF_DEV_DB_ADAPTER=mysql2
DF_DEV_DB_HOST=doubtfire-database
DF_DEV_DB_DATABASE=doubtfire
DF_DEV_DB_USERNAME=dfire
DF_DEV_DB_PASSWORD=pwd

# Database settings - for test env
DF_TEST_DB_ADAPTER=mysql2
DF_TEST_DB_HOST=doubtfire-database
DF_TEST_DB_DATABASE=doubtfire
DF_TEST_DB_USERNAME=dfire
DF_TEST_DB_PASSWORD=pwd

# Database and auth related secrets
DF_SECRET_KEY_BASE=test-secret-key
DF_SECRET_KEY_ATTR=test-secret-key
DF_SECRET_KEY_DEVISE=test-secret-key

# Student work location
DF_STUDENT_WORK_DIR=/student-work

# Institution settings
DF_INSTITUTION_HOST=http://localhost:3000
DF_INSTITUTION_PRODUCT_NAME=OnTrack
DF_INSTITUTION_SETTINGS_RB="deakin.rb"

# Authentication settings
DF_AUTH_METHOD=aaf

# AAF settings
DF_AAF_ISSUER_URL=https://rapid.test.aaf.edu.au
DF_AAF_AUDIENCE_URL=http://localhost:3000
DF_AAF_CALLBACK_URL=http://localhost:3000/api/auth/jwt
DF_AAF_IDENTITY_PROVIDER_URL=https://signon-uat.deakin.edu.au/idp/shibboleth
DF_AAF_UNIQUE_URL=https://rapid.test.aaf.edu.au/jwt/authnrequest/research/Ag4EJJhjf0zXHqlKvKZEbg
DF_AAF_AUTH_SIGNOUT_URL=https://sync-uat.deakin.edu.au/auth/logout
DF_SECRET_KEY_AAF=v4~LMFLzzwRGZdju\5QBa@FiHIN9

0 comments on commit 7890b1f

Please sign in to comment.