You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
297 B
16 lines
297 B
.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 |