Add db & pydantic models + set up alembic
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
db:
|
||||
image: mysql
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u${MYSQL_USER} -p${MYSQL_PASSWORD}"]
|
||||
interval: 10s
|
||||
timeout: 30s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- app-db-data:/var/lib/mysql
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD?Variable not set}
|
||||
- MYSQL_USER=${MYSQL_USER?Variable not set}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD?Variable not set}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE?Variable not set}
|
||||
Reference in New Issue
Block a user