https://github.com/samuraiwtf/wayfarer
Wayfarer Training Federation target organization
https://github.com/samuraiwtf/wayfarer
Last synced: about 1 year ago
JSON representation
Wayfarer Training Federation target organization
- Host: GitHub
- URL: https://github.com/samuraiwtf/wayfarer
- Owner: SamuraiWTF
- License: mit
- Created: 2021-03-05T19:02:32.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-24T20:35:54.000Z (almost 3 years ago)
- Last Synced: 2025-02-15T00:25:47.646Z (over 1 year ago)
- Language: JavaScript
- Size: 2.98 MB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
1. Review the configuration in `default.env`. Any overrides can go into `.env` using the same variable names as their default counterparts.
1. `./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.
1. `docker build -t ticket-api .` build the ticket-api image.
1. `cd ../ticketApp` cd into the *ticketApp* directory.
1. `docker build -t ticket-app .` build the ticket-app image.
1. `cd ../wayfarerDB` cd into the *wayfarerDB* directory.
1. `docker build -t wayfarer-db .` build the db image.
1. `cd ../wayfarerOAuth` cd into the *wayfarerOAuth* directory.
1. `docker build -t wayfarer-oauth .` build the wayfarer-oauth image.
1. `cd ../wayfarerOAuthDB` cd into the *wayfarerOAuthDB* directory.
1. `docker build -t wayfarer-oauth-db .` build the db image.
1. `cd ..` change to the project root
1. `docker swarm init` initialize docker swarm
1. `docker stack deploy -c docker-compose.yml wayfarer-ticket` deploy the stack.
# stopping the stack
`docker stack rm wayfarer-ticket`