Infra
This repo orchestrates all microservices in the project's cluster.
Overview
Starting microservices
There are two recommended ways to start a microservice:
- Starting individual microservice(s)
Each microservice can be started on its own by running
$ docker-compose up --build
in the microservice's repo.
- Starting all microservices
To start all microservices of this project, follow the instructions in the Getting started section.
Getting started
Linux
# Update Git submodules
$ git submodule update --init --recursive
# Create env files from templates
$ cp ingress-middleware/.env.in .env-ingress-middleware
$ cp auth/.env.in .env-auth
$ cp converter-deepdream/.env.in .env-converter-deepdream
$ cp image-storage/.env.in .env-imagestorage
$ cp storage-service/.env.in .env-storageservice
# Create neccessary env values
$ sed -i 's|#SERVER_AUTH_JWT_KEY=.*|SERVER_AUTH_JWT_KEY=some-random-static-secret|' .env-auth
# Use the Docker Compose wrapper to (re)build and start the cluster
$ ./docker-compose up --build
# Test!
$ curl \
-X POST \
-H "Content-Type: application/json" \
-d '{ "username": "leon", "password": "leon" }' \
"http://localhost/api/v1/auth"