docker volume create spotify_staticdocker volume create spotify_postgrescreate the image with tag name spotify, using the Dockerfile in current context
docker build -t spotify .docker run --name spotify_postgres \
--network=spotify_network \
-p 5432:5432 \
-v spotify_postgres:/var/lib/postgresql/data \
--env-file ./.postgres \
postgres:latestdocker run -it --name spotify_django \
--network=spotify_network \
-p 8000:8000 \
-v $(pwd):/app \
-v spotify_static:/app/static \
--restart unless-stopped \
--env-file ./.env spotify \
bash -c "python manage.py runserver 0.0.0.0:8000"