From 3280a4623f639977c945e3f74ea538a660c02630 Mon Sep 17 00:00:00 2001 From: Abhiek187 Date: Mon, 23 Oct 2023 18:57:01 -0400 Subject: [PATCH] Replace docker-compose with docker compose --- README.md | 4 ++-- start-docker.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fe6645d..08418c9 100644 --- a/README.md +++ b/README.md @@ -75,9 +75,9 @@ Before cloning this repo, you will need to obtain an API key from [Financial Mod Make sure [Docker](https://www.docker.com/products/docker-desktop) and [Docker Compose](https://docs.docker.com/compose/install/) are installed. And make sure to obtain an API key from [Financial Modeling Prep](https://financialmodelingprep.com/developer/docs/). Then do the following: -1. Pass in the API key and start up a container for this app: `./start-docker.sh YOUR_API_KEY`. On future visits, the container can be spun up directly using `./start-docker.sh` or `docker-compose up -d`. +1. Pass in the API key and start up a container for this app: `./start-docker.sh YOUR_API_KEY`. On future visits, the container can be spun up directly using `./start-docker.sh` or `docker compose up -d`. 2. Once everything's installed, open `localhost:8000` in your browser. -3. When done, shut down and clean up the container: `docker-compose down` +3. When done, shut down and clean up the container: `docker compose down` ## Troubleshooting diff --git a/start-docker.sh b/start-docker.sh index b9fbb35..c03ce7b 100644 --- a/start-docker.sh +++ b/start-docker.sh @@ -18,7 +18,7 @@ if [ ! -e "$ENV" ]; then echo $'\nTurning on DEBUG mode...' echo "DEBUG=true" >> "$ENV" - + echo $'\nSaving the API key...' echo "FMP_API_KEY=$1" >> "$ENV" else @@ -26,4 +26,4 @@ else fi # Spin up a docker container -docker-compose up -d +docker compose up -d