{"id":24108653,"url":"https://github.com/nikaera/docker-fastapi-basic-auth-sample","last_synced_at":"2026-04-13T04:03:42.167Z","repository":{"id":90631014,"uuid":"373310588","full_name":"nikaera/docker-fastapi-basic-auth-sample","owner":"nikaera","description":"Docker Compose sample project with BASIC authentication for FastAPI docs path in nginx.","archived":false,"fork":false,"pushed_at":"2021-06-02T22:44:18.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T10:12:02.806Z","etag":null,"topics":["basic-authentication","docker","docker-compose","fastapi","nginx"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikaera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-02T21:44:26.000Z","updated_at":"2022-05-12T15:33:24.000Z","dependencies_parsed_at":"2023-04-25T13:02:25.028Z","dependency_job_id":null,"html_url":"https://github.com/nikaera/docker-fastapi-basic-auth-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikaera/docker-fastapi-basic-auth-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikaera%2Fdocker-fastapi-basic-auth-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikaera%2Fdocker-fastapi-basic-auth-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikaera%2Fdocker-fastapi-basic-auth-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikaera%2Fdocker-fastapi-basic-auth-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikaera","download_url":"https://codeload.github.com/nikaera/docker-fastapi-basic-auth-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikaera%2Fdocker-fastapi-basic-auth-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31739050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T03:27:07.512Z","status":"ssl_error","status_checked_at":"2026-04-13T03:26:53.610Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basic-authentication","docker","docker-compose","fastapi","nginx"],"created_at":"2025-01-10T23:39:20.429Z","updated_at":"2026-04-13T04:03:42.161Z","avatar_url":"https://github.com/nikaera.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-fastapi-basic-auth-sample\n\nDocker Compose sample project with BASIC authentication for FastAPI docs path in nginx.\n\n## Getting Started 💨\n\nAfter launching the container with Docker Compose, access `http://localhost:80/docs` and make sure BASIC authentication is enabled. In this case, set `$USER` and `$PASS` in the environment variables to [set the information for BASIC authentication](https://github.com/nikaera/docker-fastapi-basic-auth-sample/blob/main/docker-compose.yml#L14-L15).\n\n```bash\ndocker-compose up --abort-on-container-exit\n\n# clean up after docker-compose\ndocker-compose down --rmi all --volumes --remove-orphans\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikaera%2Fdocker-fastapi-basic-auth-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikaera%2Fdocker-fastapi-basic-auth-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikaera%2Fdocker-fastapi-basic-auth-sample/lists"}