A Django-based forum/board application.
Copy the example environment file and fill in your actual secrets:
cp .env.example .envOpen .env and configure your credentials (SECRET_KEY, Database, Social Auth, etc.).
Launch the application using Docker Compose:
docker-compose up --buildThe application will be available at http://localhost:8000.
Once the containers are running, apply the database migrations:
docker-compose exec web python manage.py migrateTo access the Django admin interface (/admin), create a superuser account:
docker-compose exec web python manage.py createsuperuser- Stop the application:
docker compose down - Restart from scratch (clears environment):
docker compose down && docker compose up --build - View logs:
docker compose logs -f web - Run tests:
docker compose exec web python manage.py test - Collect static files:
docker compose exec web python manage.py collectstatic
- Database Errors: If the database fails to initialize, ensure
DB_PASSWORDis set in your.envfile and rundocker compose downbefore starting again. - Dependency Issues: If you add new packages to
requirements.txt, rundocker compose up --buildto rebuild the image.
- This project uses
python-decouplefor configuration. Never commit your.envfile to version control. - In production, ensure
DEBUG=Falsein your environment variables.