How to run on AWS
So prp work is needed to ISLE-dc to run on an AWS server. To speed this up I created a bash script (prep_centos.sh). This script assumes you’re running the latest CentOS from AWS. I’ve only tested this on Lightsail (not EC2).
After downloading the script and running it $ make
to pull all of the docker images, generate the .env
and docker-compose.env.yml
file. Now edit those 2 files.
.env
If no domain use the ip with DOTS replaced with hyphens (-
) followed by traefik.me (Example: X-X-X-X.traefik.me)
DRUPAL_SITE_HOST=example.org
# OR
DRUPAL_SITE_HOST=123-45-67-89.traefik.me
docker-compose.env.yml
# Change passwords (except MATOMO, it requires extra work)
MYSQL_ROOT_PASSWORD: password
# TO
MYSQL_ROOT_PASSWORD: qor7u1038
# If using just IP (no domain) change all of these from
${COMPOSE_PROJECT_NAME-isle-dc}.${DRUPAL_SITE_HOST-traefik.me}
# To
${COMPOSE_PROJECT_NAME-isle-dc}-${DRUPAL_SITE_HOST-traefik.me}
Run $ make
again to push changes into the docker images then run the compose command.
$ make
$ docker-compose up -d
# To see progress of the build
$ docker-compose logs -f drupal
Useful Commands
# to get a one time login url for admin
$ docker-compose -p islandora exec drupal drush uli
# to clear cache
$ docker-compose -p islandora exec drupal drush cr
# See how much storage is being used by all of the containers
$ docker system df
# Current state of docker containers
$ docker status
# parse all docker logs for errors
$ docker-compose logs | grep error