-
Notifications
You must be signed in to change notification settings - Fork 346
/
docker-compose.yml
82 lines (73 loc) · 2.53 KB
/
docker-compose.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
services:
doubtfire-api:
container_name: web-doubtfire-api
image: lmsdoubtfire/doubtfire-api:7.0-dev
ports:
- "3000:3000"
volumes:
- ../data/tmp:/doubtfire/tmp
- ../data/student-work:/student-work
depends_on:
- dev-db
environment:
RAILS_ENV: 'development'
DF_STUDENT_WORK_DIR: /student-work
DF_INSTITUTION_HOST: http://localhost:3000
DF_INSTITUTION_PRODUCT_NAME: OnTrack
DF_SECRET_KEY_BASE: test-secret-key-test-secret-key!
DF_SECRET_KEY_ATTR: test-secret-key-test-secret-key!
DF_SECRET_KEY_DEVISE: test-secret-key-test-secret-key!
# Authentication method - can set to AAF or ldap
DF_AUTH_METHOD: database
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
# Database settings - for development env
DF_DEV_DB_ADAPTER: mysql2
DF_DEV_DB_HOST: doubtfire-dev-db
DF_DEV_DB_DATABASE: doubtfire-dev
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-dev-db
DF_TEST_DB_DATABASE: doubtfire-dev
DF_TEST_DB_USERNAME: dfire
DF_TEST_DB_PASSWORD: pwd
# Database settings - for test env
DF_PRODUCTION_DB_ADAPTER: mysql2
DF_PRODUCTION_DB_HOST: doubtfire-dev-db
DF_PRODUCTION_DB_DATABASE: doubtfire-dev
DF_PRODUCTION_DB_USERNAME: dfire
DF_PRODUCTION_DB_PASSWORD: pwd
# Overseer - disabled!
OVERSEER_ENABLED: 1
RABBITMQ_HOSTNAME: doubtfire-mq
RABBITMQ_USERNAME: secure_credentials
RABBITMQ_PASSWORD: secure_credentials
dev-db:
container_name: doubtfire-dev-db
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: db-root-password
MYSQL_DATABASE: doubtfire-dev
MYSQL_USER: dfire
MYSQL_PASSWORD: pwd
volumes:
- ../data/database:/var/lib/mysql
doubtfire-web:
container_name: doubtfire-web
build: .
command: /bin/bash -c 'npm install; npm start'
ports:
- "4200:4200"
- "9876:9876"
depends_on:
- doubtfire-api
volumes:
- .:/doubtfire-web