I use pipenv to start my application server and would like to start redis-server when the container spins up.
right now, I have to spin up a container and go inside of the container and run redis-server to start redis. I want to start everything with docker-compose up.
is there a way to do this ?
I have a docker-composer file like below
version: '3'
services:
api:
# docker run -d -p 8000:8000 data-tracker-backend pipenv run start
build: ./api
command: pipenv run start
image : data-tracker-backend
volumes:
- ./api:/api
expose:
- "8000"
Thank you