hardcoding → env file, tweak entrypoint

This commit is contained in:
3wc 2020-10-02 19:24:02 +02:00
parent c1b26a5747
commit 1afef99027
2 changed files with 4 additions and 12 deletions

View File

@ -2,6 +2,7 @@ version: '2'
services:
app:
container_name: adapt
image: 3wordchant/adaptauthoring:0.10.4
build: .
volumes:
@ -14,16 +15,7 @@ services:
- "5000:5000"
networks:
- internal
environment:
- 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
env_file: .env
db:
container_name: adaptdb

View File

@ -28,7 +28,7 @@ load_vars() {
}
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
yes "" | node install --install Y \
--authoringToolRepository https://github.com/adaptlearning/adapt_authoring.git \
@ -51,7 +51,7 @@ install_adapt() {
}
update_adapt() {
echo "Upgrade Adapt Authoring Tool & Framework"
echo "'conf' dir found, running 'node upgrade ...'"
node upgrade --continue Y --updateAutomatically Y
}