worked on async alembic migrations, User model. Current issue: web_1 | INFO: 172.20.0.1:62958 - "POST /users/ HTTP/1.1" 500 Internal Server Error web_1 | ERROR: Exception in ASGI application web_1 | Traceback (most recent call last): ... web_1 | response web_1 | value is not a valid dict (type=type_error.dict) when trying to create new user
31 lines
590 B
YAML
31 lines
590 B
YAML
version: "3"
|
|
|
|
services:
|
|
db:
|
|
image: postgres:11
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=foo
|
|
web:
|
|
build: .
|
|
command: bash -c "pipenv run uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload"
|
|
volumes:
|
|
- .:/code
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
|
|
pgadmin:
|
|
image: dpage/pgadmin4
|
|
environment:
|
|
- PGADMIN_DEFAULT_EMAIL=pgadmin4@pgadmin.org
|
|
- PGADMIN_DEFAULT_PASSWORD=admin
|
|
ports:
|
|
- "5050:80"
|
|
depends_on:
|
|
- db
|