mirror of
https://github.com/correl/docker-pleroma.git
synced 2024-12-27 03:00:09 +00:00
Add healthchecks (#48)
This commit is contained in:
parent
78e6ac4142
commit
abe0dc3cb8
1 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,8 @@ services:
|
|||
image: postgres:12.1-alpine
|
||||
container_name: pleroma_db
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-U", "pleroma"]
|
||||
environment:
|
||||
POSTGRES_USER: pleroma
|
||||
POSTGRES_PASSWORD: ChangeMe!
|
||||
|
@ -16,6 +18,12 @@ services:
|
|||
build: .
|
||||
image: pleroma
|
||||
container_name: pleroma_web
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"wget -q --spider --proxy=off localhost:4000 || exit 1",
|
||||
]
|
||||
restart: always
|
||||
ports:
|
||||
- '4000:4000'
|
||||
|
@ -32,4 +40,4 @@ services:
|
|||
DB_PASS: ChangeMe!
|
||||
DB_NAME: pleroma
|
||||
depends_on:
|
||||
- db
|
||||
- db
|
||||
|
|
Loading…
Reference in a new issue