postgres 18 does not work on ubuntu 22
This commit is contained in:
@@ -10,9 +10,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY . ./app/
|
COPY . ./app/
|
||||||
|
|
||||||
# Expose Gunicorn port
|
# Expose Gunicorn port
|
||||||
EXPOSE 8000
|
EXPOSE 4444
|
||||||
|
|
||||||
# Gunicorn command for a package structure
|
# Gunicorn command for a package structure
|
||||||
# "app:create_app()" assumes you have a factory function in __init__.py
|
# "app:create_app()" assumes you have a factory function in __init__.py
|
||||||
# If your Flask instance is just named 'app' inside __init__.py, use "app:app"
|
# If your Flask instance is just named 'app' inside __init__.py, use "app:app"
|
||||||
CMD ["gunicorn", "--preload", "-w", "4", "-b", "0.0.0.0:8000", "app:create_app()"]
|
CMD ["gunicorn", "--preload", "-w", "4", "-b", "0.0.0.0:4444", "app:create_app()"]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:18-alpine
|
image: postgres:17
|
||||||
restart: always
|
restart: always
|
||||||
env_file: ./app/.env.db
|
env_file: ./app/.env.db
|
||||||
ports:
|
ports:
|
||||||
@@ -19,7 +19,7 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
env_file: ./app/.env.web
|
env_file: ./app/.env.web
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "4444:4444"
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
Reference in New Issue
Block a user