6
configuration
Ratstail91 edited this page 2023-12-24 02:35:03 +11:00

Configuration

There are a set of tools for configuration included in the core project and it's services; these do things like outputting docker and SQL scripts.

configure-script.js

This is detailed more completely in the setup tutorial, but this prompts for a number of inputs, and generates three files using that input.

Each microservice has it's own configure-script.js file; but the core project covers them all at once (for deployment).

docker-compose.yml

This file, when generated by the core project, will pull the microservices from docker hub (along with traefik and mariadb) and will put everything together. This file is ignored by git.

When it's generated by a service instead, it sets up that service independently.

Dockerfile

This file covers ONLY the repo it exists in. It is committed to the repo, but is also generated by the configure-script.js for completeness.

startup.sql

This file generates a script for mariadb's first run that creates the appropriate databases. This file is ignored by git.