Skip to content

Commit 90b8bfb

Browse files
authored
Merge branch 'master' into no-www
2 parents e2b3e56 + 07b568b commit 90b8bfb

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ services:
22
db:
33
image: postgres:12
44
restart: always
5+
healthcheck:
6+
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
7+
interval: 10s
8+
retries: 5
9+
start_period: 30s
10+
timeout: 10s
511
volumes:
612
- app-db-data:/var/lib/postgresql/data/pgdata
713
env_file:
@@ -42,7 +48,9 @@ services:
4248
- traefik-public
4349
- default
4450
depends_on:
45-
- db
51+
db:
52+
condition: service_healthy
53+
restart: true
4654
env_file:
4755
- .env
4856
environment:

release-notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
* 👷 Do not sync labels as it overrides manually added labels. PR [#1307](https://github.com/fastapi/full-stack-fastapi-template/pull/1307) by [@tiangolo](https://github.com/tiangolo).
66

7+
### Features
8+
9+
* 🩺 Add DB healthcheck. PR [#1342](https://github.com/fastapi/full-stack-fastapi-template/pull/1342) by [@tiangolo](https://github.com/tiangolo).
10+
711
### Refactors
812

913
* 🔥 Enable support for Arm Docker images in Mac, remove old patch. PR [#1341](https://github.com/fastapi/full-stack-fastapi-template/pull/1341) by [@tiangolo](https://github.com/tiangolo).

0 commit comments

Comments
 (0)