diff --git a/alembic.ini b/alembic.ini index 672902a..ca7ed18 100644 --- a/alembic.ini +++ b/alembic.ini @@ -2,7 +2,7 @@ [alembic] # path to migration scripts -script_location = /app/app/alembic +script_location = app/alembic # template used to generate migration file # file_template = %%(rev)s_%%(slug)s diff --git a/docker-compose.yml b/docker-compose.yml index 545da16..95af9db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,6 @@ services: browserless: condition: service_started volumes: - - ./app:/app/app - screenshots_data:/app/screenshots networks: - nginx_default @@ -41,7 +40,7 @@ services: - postgres_data:/var/lib/postgresql/data - ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro healthcheck: - test: ["CMD-SHELL", "pg_isready -U priceflow -d priceflow"] + test: [ "CMD-SHELL", "pg_isready -U priceflow -d priceflow" ] interval: 10s timeout: 5s retries: 5 diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 37f0037..84ae841 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -5,7 +5,6 @@ echo "Setting up screenshots directory..." mkdir -p screenshots echo "Running database migrations..." -ls -la /app/app alembic upgrade head echo "Starting application..."