Skip to content

Commit

Permalink
Replace docker-compose with docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhiek187 committed Oct 23, 2023
1 parent fc88f73 commit 3280a46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions start-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ 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
echo "The .env file is already created."
fi

# Spin up a docker container
docker-compose up -d
docker compose up -d

0 comments on commit 3280a46

Please sign in to comment.