Building an Analytics API service using Python, FastAPI, and Time-series PostgreSQL with TimescaleDB.
- Docker
- Docker Compose
- Python 3.x
- PostgreSQL (TimescaleDB)
docker build -t analytics-api -f Dockerfile.web .
docker run analytics-apidocker compose up --watchTo stop and remove containers:
docker compose downTo stop and remove containers with volumes:
docker compose down -vTo access the container shell:
docker compose run app /bin/bashTo run Python inside the container:
docker compose run app python