mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 15:18:12 +02:00
build: Remove app volume mount, adjust Alembic script path, and clean up entrypoint.
This commit is contained in:
1 parent
eeb7ff9d6a
commit
89f6f7d3ae
3 files changed
+2
-4
No files matched your search
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[alembic]
|
[alembic]
|
||||||
# path to migration scripts
|
# path to migration scripts
|
||||||
script_location = /app/app/alembic
|
script_location = app/alembic
|
||||||
|
|
||||||
# template used to generate migration file
|
# template used to generate migration file
|
||||||
# file_template = %%(rev)s_%%(slug)s
|
# file_template = %%(rev)s_%%(slug)s
|
||||||
|
|||||||
+1
-2
@@ -21,7 +21,6 @@ services:
|
|||||||
browserless:
|
browserless:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
volumes:
|
volumes:
|
||||||
- ./app:/app/app
|
|
||||||
- screenshots_data:/app/screenshots
|
- screenshots_data:/app/screenshots
|
||||||
networks:
|
networks:
|
||||||
- nginx_default
|
- nginx_default
|
||||||
@@ -41,7 +40,7 @@ services:
|
|||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U priceflow -d priceflow"]
|
test: [ "CMD-SHELL", "pg_isready -U priceflow -d priceflow" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ echo "Setting up screenshots directory..."
|
|||||||
mkdir -p screenshots
|
mkdir -p screenshots
|
||||||
|
|
||||||
echo "Running database migrations..."
|
echo "Running database migrations..."
|
||||||
ls -la /app/app
|
|
||||||
alembic upgrade head
|
alembic upgrade head
|
||||||
|
|
||||||
echo "Starting application..."
|
echo "Starting application..."
|
||||||
|
|||||||
Reference in new issue
Block a user