Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 1.33 KB

README.md

File metadata and controls

25 lines (22 loc) · 1.33 KB

wayfarer

Wayfarer Training Federation target organization

scripted build and deployment

  1. ./build.sh this will create the docker images for each part of the stack, as well as fetching application dependencies.
  2. Review the configuration in default.env. Any overrides can go into .env using the same variable names as their default counterparts.
  3. ./deploy.sh will deploy the stack. You need to have initialized docker swarm (or use docker swarm init to do so).

manual build and deployment

  1. cd ticketApi from project root, cd into the ticketApi directory.
  2. docker build -t ticket-api . build the ticket-api image.
  3. cd ../ticketApp cd into the ticketApp directory.
  4. docker build -t ticket-app . build the ticket-app image.
  5. cd ../wayfarerDB cd into the wayfarerDB directory.
  6. docker build -t wayfarer-db . build the db image.
  7. cd ../wayfarerOAuth cd into the wayfarerOAuth directory.
  8. docker build -t wayfarer-oauth . build the wayfarer-oauth image.
  9. cd ../wayfarerOAuthDB cd into the wayfarerOAuthDB directory.
  10. docker build -t wayfarer-oauth-db . build the db image.
  11. cd .. change to the project root
  12. docker swarm init initialize docker swarm
  13. docker stack deploy -c docker-compose.yml wayfarer-ticket deploy the stack.

stopping the stack

docker stack rm wayfarer-ticket