Remove separate docker compose for redis

drew/tilt-local-dev
Drew Bednar 2 years ago
parent 815303693e
commit 204120c6a1

@ -1,9 +0,0 @@
version: '3.8'
services:
redis:
image: redis:7.0.4-alpine
restart: always
ports:
- 6379:6379

@ -28,9 +28,13 @@ services:
- POSTGRES_DB=fastapi_celery
- POSTGRES_USER=fastapi_celery
- POSTGRES_PASSWORD=fastapi_celery
ports:
- 5432:5432
redis:
image: redis:7-alpine
ports:
- 6379:6379
celery_worker:
build:

@ -34,20 +34,6 @@ def fix_eof(c):
c.run("pre-commit run end-of-file-fixer --all-files", pty=True)
@task
def start_redis(c):
"""Runs the Redis integration environment."""
print("Starting Redis")
c.run("docker compose -f docker-compose-redis.yml up -d")
@task
def stop_redis(c):
"""Stops the Redis integration environent."""
print("Stopping Redis")
c.run("docker compose -f docker-compose-redis.yml down")
@task
def init_db(c):
"""Initialize the database."""
@ -72,7 +58,7 @@ def apply_migration(c, revision="head"):
@task(help={"username": "A username", "email": "The user's email"})
def add_user(c, username="", email=""):
"""Adds a dummy user to the application Database"""
"""Adds a dummy user to the application database"""
if not (username and email):
raise ValueError("You must provide a username and email")
from project.database import SessionLocal

Loading…
Cancel
Save