Added setup for backend local development

local database setup
This commit is contained in:
Yannic Kilcher
2022-12-14 00:16:07 +01:00
committed by GitHub
10 changed files with 63 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
version: "3.7"
services:
db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
adminer:
image: adminer
restart: always
ports:
- 8089:8080
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env bash
export DATABASE_URI=postgresql://postgres:postgres@localhost:5432/postgres
uvicorn app.main:app --reload