- Setup your Django Project:
django-admin startproject dockerango
- Place each of these files in the
dockerango
directory. That'll be the same directory asmanage.py
- Ensure you've configured
settings.py
to point to the database, like below
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'db'
}
}
- Run
docker-compose build && docker-compose up
- Browse to http://localhost:8000 to verify it's running