.PHONY: up init-db down restart up: docker-compose up -d init-db: docker exec -it $$(docker ps -qf "name=api") python -c "\ from api.database import Base, engine; \ from api.models import Message; \ Base.metadata.create_all(bind=engine)\ " down: docker-compose down restart: down up init-db