Sign inSign up

jcabrero/test-fastapi

By jcabrero

•Updated about 1 year ago

This is a test fastapi endpoint to test the functionality

Image
0

855

jcabrero/test-fastapi repository overview

This image is meant to be able to test a simple web server configuration example to be working and to be remotely available on dockerhub.

Use this docker compose:

services:
  web:
    image: jcabrero/test-fastapi:latest
    ports:
      - "8000:8000"
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
      interval: 30s
      retries: 3
      start_period: 15s
      timeout: 10s

It should be available on localhost:8000/docs

Tag summary

Content type

Image

Digest

sha256:cdd82e43b…

Size

74 MB

Last updated

about 1 year ago

docker pull jcabrero/test-fastapi