hardcoding → env file, tweak entrypoint
This commit is contained in:
parent
c1b26a5747
commit
1afef99027
|
@ -2,6 +2,7 @@ version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
container_name: adapt
|
||||||
image: 3wordchant/adaptauthoring:0.10.4
|
image: 3wordchant/adaptauthoring:0.10.4
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -14,16 +15,7 @@ services:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
environment:
|
env_file: .env
|
||||||
- PORT=5000
|
|
||||||
- DOMAIN=adapt.localhost
|
|
||||||
- DB_HOST=db
|
|
||||||
- DB_NAME=adapt
|
|
||||||
- DB_USER=adapt
|
|
||||||
- SESSION_SECRET=foobar
|
|
||||||
- ADMIN_EMAIL=foo@bar.com
|
|
||||||
- ADMIN_PASSWORD=foo
|
|
||||||
- FROM_EMAIL=adapt@localhost
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
container_name: adaptdb
|
container_name: adaptdb
|
||||||
|
|
|
@ -28,7 +28,7 @@ load_vars() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_adapt() {
|
install_adapt() {
|
||||||
echo "No 'conf' dir found, installing Adapt"
|
echo "No 'conf' dir found, running 'node install...'"
|
||||||
# 3wc: use `yes` to skip the dbPass and dbAuthSource prompts
|
# 3wc: use `yes` to skip the dbPass and dbAuthSource prompts
|
||||||
yes "" | node install --install Y \
|
yes "" | node install --install Y \
|
||||||
--authoringToolRepository https://github.com/adaptlearning/adapt_authoring.git \
|
--authoringToolRepository https://github.com/adaptlearning/adapt_authoring.git \
|
||||||
|
@ -51,7 +51,7 @@ install_adapt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
update_adapt() {
|
update_adapt() {
|
||||||
echo "Upgrade Adapt Authoring Tool & Framework"
|
echo "'conf' dir found, running 'node upgrade ...'"
|
||||||
node upgrade --continue Y --updateAutomatically Y
|
node upgrade --continue Y --updateAutomatically Y
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue