Wayfarer Training Federation target organization
./build.sh
this will create the docker images for each part of the stack, as well as fetching application dependencies.- Review the configuration in
default.env
. Any overrides can go into.env
using the same variable names as their default counterparts. ./deploy.sh
will deploy the stack. You need to have initialized docker swarm (or usedocker swarm init
to do so).
cd ticketApi
from project root, cd into the ticketApi directory.docker build -t ticket-api .
build the ticket-api image.cd ../ticketApp
cd into the ticketApp directory.docker build -t ticket-app .
build the ticket-app image.cd ../wayfarerDB
cd into the wayfarerDB directory.docker build -t wayfarer-db .
build the db image.cd ../wayfarerOAuth
cd into the wayfarerOAuth directory.docker build -t wayfarer-oauth .
build the wayfarer-oauth image.cd ../wayfarerOAuthDB
cd into the wayfarerOAuthDB directory.docker build -t wayfarer-oauth-db .
build the db image.cd ..
change to the project rootdocker swarm init
initialize docker swarmdocker stack deploy -c docker-compose.yml wayfarer-ticket
deploy the stack.
docker stack rm wayfarer-ticket