mirror of
https://github.com/iritmaximus/timetrials.git
synced 2026-10-12 19:13:48 +03:00
fix: exposed port 5432 on db to try to fix db not resolved in flyio
This commit is contained in:
+3
-1
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
flask:
|
flask:
|
||||||
# adding this ****ing little **** took at least 3 hours of debugging
|
# adding this ****ing little **** took at least 3 hours of debugging
|
||||||
command: sh -c "gunicorn -w 4 flaskr:app -b 0.0.0.0:5000 --access-logfile '-' --error-logfile '-'"
|
# command: sh -c "gunicorn -w 4 flaskr:app -b 0.0.0.0:5000 --access-logfile '-' --error-logfile '-'"
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@@ -36,6 +36,8 @@ services:
|
|||||||
- POSTGRES_USER
|
- POSTGRES_USER
|
||||||
- POSTGRES_PASSWORD
|
- POSTGRES_PASSWORD
|
||||||
restart: always
|
restart: always
|
||||||
|
expose:
|
||||||
|
- 5432
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: sh -c "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"
|
test: sh -c "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"
|
||||||
interval: 3s
|
interval: 3s
|
||||||
|
|||||||
Reference in New Issue
Block a user