Docker compose project for workstation.
This is a docker compose application.
- Python 3.12 or higher
This project includes a complete Docker Compose setup for running the FastAPI application with all its dependencies.
📖 Full Docker Compose Guide - Comprehensive documentation with examples
- Create environment file:
cp .env.example .env
# Edit .env with your configuration- Start all services:
# Start in foreground
docker compose up
# Start in background
docker compose up -d- Access the application:
- API: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Health Check: http://localhost:8000/health
The docker-compose.yml includes:
- web: FastAPI application (port 8000)
- postgres: PostgreSQL database (port 5432)
- redis: Redis cache (port 6379)
- nginx: Nginx reverse proxy (ports 80/443)
# View running services
docker compose ps
# View logs
docker compose logs -f
# View logs for specific service
docker compose logs -f web
# Restart a service
docker compose restart web
# Stop all services
docker compose down
# Stop and remove volumes (deletes data)
docker compose down -v
# Rebuild and restart
docker compose up --build
# Execute command in container
docker compose exec web bashValidate the docker-compose configuration:
# Check syntax
docker compose config
# Verify services are running
docker compose ps
# Check health status
docker compose ps --format json | jq '.Health'- Install opencommit:
npm install -D opencommit
npm install -D @commitlint/cli @commitlint/config-conventional @commitlint/prompt-cli commitizen cz-emoji-conventional
git add .opencommit-commitlint
oco commitlint get
oco config set OCO_PROMPT_MODULE=@commitlint