local database setup

This commit is contained in:
Yannic Kilcher
2022-12-13 16:19:29 +01:00
parent ceb8f873cc
commit 6bc64459f5
9 changed files with 68 additions and 9 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