Skip to content

Commit c93c238

Browse files
committed
fix: secure deploy
1 parent 87a9746 commit c93c238

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

templates/compose/documenso.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ services:
4545
healthcheck:
4646
test:
4747
- CMD-SHELL
48-
- "wget -q -O - http://localhost:3000/ | grep -q 'Sign in to your account' || exit 1"
49-
interval: 10s
50-
timeout: 5s
51-
retries: 10
52-
start_period: 40s
48+
- "wget -q -O - http://documenso:3000/ | grep -q 'Sign in to your account'"
49+
interval: 2s
50+
timeout: 10s
51+
retries: 20
5352
entrypoint:
5453
- /bin/sh
5554
- -c
@@ -146,7 +145,6 @@ services:
146145
volumes:
147146
- documenso_postgresql_data:/var/lib/postgresql/data
148147
healthcheck:
149-
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-documenso} -d ${POSTGRES_DB:-documenso-db}"]
150-
interval: 5s
151-
timeout: 5s
148+
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
149+
timeout: 20s
152150
retries: 10

0 commit comments

Comments
 (0)