Requirements:
- Docker Latest
Follow these steps:
- Make a file name
.env
- In
.env
file changeSQL_HOST="db"
orDB_HOST="db"
- Make a file name
.env.docker
add for postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=giveapassword
POSTGRES_DB=postgres
- Docker Build
docker-compose up -d --build
- Lets Browse http://0.0.0.0:8080
- Migration
docker-compose exec server python manage.py migrate --noinput
- Collect Statics
docker-compose exec server python manage.py collectstatic --no-input --clear
- Check Logs
docker-compose logs -f
- Container down
docker-compose down