A Dockerized environment for Mizzou's CS3380 Databases class. This repository provides a quick way to run a PostgreSQL database, a Go web application, and a pgAdmin GUI for database management.
- PostgreSQL: Persistent database storage using Docker volumes.
- Go Webapp: Connects to PostgreSQL and demonstrates database-backed web development. Go module cache is persisted for faster builds. Air is included for hot-reloading.
- pgAdmin: Web-based GUI for managing and viewing PostgreSQL data.
- Clone this repository:
git clone https://github.com/notSam25/CS3380-Docker.git cd CS3380-Docker - Modify
.envfor required environment variables. - Build and start all services:
docker compose up --build
- Access the webapp at
http://localhost:<webapp-port>(set in your.envfile). - Access pgAdmin at
http://localhost:8080(default). - Database data and Go module cache are persisted between runs for faster startup and reliability.
- If you encounter issues, try rebuilding containers:
docker compose down -v docker compose up --build
- Ensure your
.envfile is correctly configured.
MIT