🎓 Student Feedback & Registration System
390
A full-stack student information system built with Streamlit, FastAPI/SQLAlchemy (Backend logic), Celery (Async Processing), Redis, and PostgreSQL.
This repository contains two main images:
muralikrishna570/studentfeedback-app: The Streamlit frontend and main application logic.muralikrishna570/studentfeedback-worker: The Celery worker for processing unrelated background tasks (emails, database persistence, analytics).You can run the entire system using a single docker-compose.yml file.
docker-compose.ymlCopy the following content into a file named docker-compose.yml:
services:
postgres:
image: postgres:15
container_name: student_postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-admin}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_DB: ${POSTGRES_DB:-student_db}
volumes:
- ./data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U admin -d student_db" ]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7
container_name: student_redis
volumes:
- ./data/redis:/data
ports:
- "6379:6379"
app:
image: muralikrishna570/studentfeedback-app:latest
container_name: student_app
command: app
ports:
- "8501:8501"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
worker:
image: muralikrishna570/studentfeedback-worker:latest
container_name: student_worker
command: worker
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
worker_2:
image: muralikrishna570/studentfeedback-worker:latest
container_name: student_worker_2
command: worker
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
.env fileCreate a file named .env in the same directory and configure your secrets:
# Database Configuration
POSTGRES_USER=admin
POSTGRES_PASSWORD=password
POSTGRES_DB=student_db
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
# Redis Configuration
REDIS_HOST=redis
REDIS_PORT=6379
# Admin Security (Required for Admin Dashboard)
ADMIN_SECRET_KEY=change_this_to_a_secure_random_key
# Ngrok (Optional, if using tunneling)
NGROK_AUTHTOKEN=your_ngrok_token_here
Start all services:
docker-compose up -d
Access the application at http://localhost:8501.
If you provided an NGROK_AUTHTOKEN in your .env file, the application automatically creates a secure public tunnel.
To find your public URL: Check the container logs:
docker-compose logs student_app
Look for a log line similar to:
Streamlit App Public URL: https://<random-id>.ngrok-free.app
docker pull muralikrishna570/studentfeedback-worker:latest