Clone the repo to server and then run the following command
Run the migrations
docker-compose run app sh -c "python manage.py makemigrations core" docker-compose run app sh -c "python manage.py migrate" The for running serer
docker-compose upOne its done open your browser and go to
localhost:8000 you will see the site running
This will be using the docker-compose.yml file and doesnt use nginx , gumtree etc
Migrations
docker-compose -f docker-compose.prod.yml run web python manage.py makemigrations core docker-compose -f docker-compose.prod.yml run web python manage.py migrate Build
docker-compose -f docker-compose.prod.yml up --build -dFor static files
docker-compose -f docker-compose.prod.yml run web python manage.py collectstatic --noinputOR
docker exec DOCKERNAME /bin/sh -c "python manage.py collectstatic --noinput"Once its done visit your website