litestar Docker & Self-Hosted Deployment

GitHub

Light, flexible and extensible ASGI framework | Built to scale

8,360 stars Python Python 1 file ยท ~11,156 tokens #api#asgi#asyncio#litestar#litestar-api#litestar-framework#msgspec#openapi
RAW Compose
1. Pull Image (DOCKERHUB) docker pull library/postgres
2. Docker Run (1-Click Launch) docker run -d --name litestar -p 5423:5423 --restart always postgres:latest
3. Podman Run podman run -d --name litestar -p 5423:5423 --restart always postgres:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/library/postgres:latest
5. ORAS Pull (OCI Artifact) oras pull postgres:latest
6. Compose Deployment docker compose up -d
tests/docker-compose.yml
Download .yml
version: "3"

services:
  postgres:
    image: postgres:latest
    ports:
      - "5423:5432" # use a non-standard port here
    environment:
      POSTGRES_PASSWORD: super-secret
  redis:
    image: redis:latest
    restart: always
    ports:
      - "6397:6379" # use a non-standard port here
  valkey:
    image: valkey/valkey:latest
    restart: always
    ports:
      - "6381:6379" # also a non-standard port
  nginx:
    image: nginx
    ports:
      - "8187:80"
    volumes:
      - ./nginx_test_files:/usr/share/nginx/html:ro