This repository contains a docker-compose.yml file that will setup three containers.
- A postgres database.
- The notes-api server.
- The notes-web application.
This repo has both notes-api and notes-website as sub-modules.
To run locally you must also have the code for each internal repository.
To clone recursively, please run:
git clone --recurse-submodules [email protected]:OtmaroE/notes-development.git
- To run all containers and attach to their output.
docker compose up
- To start all containers without attaching to output.
docker compose up -d
Currently this repo provides an .env file with values already configured to be plug-and-play. Change it in you need to run the apps in different ports.
The back-end doesn't automatically seed the base users and data to local testing.
To run them run the following comand once the api container is runing and healthy:
docker exec notes-api npm run db:seed