Skip to content

Phantasmogenesis/OZ-CSC-480-HCI-521-Spring-2024

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements:

  • Docker w/ Docker Compose plugin

Quickstart:

Overview:

Once you have downloaded the repository and configured all necessary environment variables, the application can be run in production mode using Docker Compose: docker compose up

Additional Configuration:

Environment Variables:

NOTE: Environment variables can be set through a command-line interface, OR by simply placing a .env file containing the required key/values at the root of this directory; either can be interpreted by Docker Compose.

Before running, certain environment variables must be set:

  • MONGO_INITDB_ROOT_USERNAME
  • MONGO_INITDB_ROOT_PASSWORD

If running with the "dev" profile, additional environment variables must be configured:

  • ME_CONFIG_MONGODB_ADMINUSERNAME
  • ME_CONFIG_MONGODB_ADMINPASSWORD

If you are developing, it is highly recommended to include this in your .env file in order to reduce image build times:

  • OPENJ9_SCC="false"

Docker Compose Options:

Docker Compose has been configured to have two "modes":

  • Production mode (docker compose up)
  • Dev mode (docker compose --profile dev up)

The main difference between Production mode and Dev mode is that Mongo Express, a web interface for administering MongoDB accessed via http://localhost:8081, is only provided in Dev mode.

Development Tips:

  • If network issues occur, try docker compose up with the following flag at the end: --force-recreate
  • If you would like to reset the database, do docker volume ls and find the volume, then delete it with docker volume rm <name of volume>
  • When you have made changes to the source code, add the --build flag to the end of the command to rebuild

RECOMMENDED COMMAND: docker compose --profile dev up --force-recreate --build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.7%
  • Dockerfile 4.3%