This repository contains a Docker Compose environment to spin-up some common service dependencies necessary for the local development of this application.
For the files container, you'll need to have some files to serve locally, especially to develop for api-bio, so make sure to check the assets repo for more information on how to acquire those files.
In order to develop for this repository you need:
First, clone this repository:
git clone https://github.com/starpep-web/env-developmentCreate an .env file with the following contents:
TIMEZONE=America/Guayaquil
NEO4J_TAG=latest
STATIC_FILES_LOCATION=/path/to/assets
If you're using an ARM based computer (like an M-series Mac) set
NEO4J_TAGtolatest-arm.As for
STATIC_FILES_LOCATION, this variable should have the absolute path on your machine that points to thefilesfolder of the project's assets. This is used by thestatic-file-servercontainer to serve up these files which are required by some of the services in this application.
Start the environment:
docker compose upAnd that's it, you will now have the following services running on your machine:
- A Redis cache available at
redis://localhost:6379 - A Neo4j StarPep database instance available at
bolt://localhost:7687and a web dashboard athttp://localhost:7474 - A Nginx HTTP server with assets and exports served at
http://localhost:10000
You may have to configure these addresses in some of the .env files in each of the different services.