Skip to content

Commit a7b5157

Browse files
committed
fix: docmost template
1 parent 793e6d1 commit a7b5157

File tree

2 files changed

+22
-27
lines changed

2 files changed

+22
-27
lines changed

templates/compose/docmost.yaml

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,58 +6,53 @@
66

77
services:
88
docmost:
9-
image: 'docmost/docmost:latest'
9+
image: "docmost/docmost:latest"
1010
depends_on:
11-
- db
12-
- redis
11+
postgresql:
12+
condition: service_healthy
13+
redis:
14+
condition: service_healthy
1315
environment:
1416
- SERVICE_FQDN_DOCMOST_3000
1517
- APP_SECRET=$SERVICE_BASE64_APPKEY
1618
- APP_URL=$SERVICE_FQDN_DOCMOST_3000
17-
- 'DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@db/docmost?schema=public'
18-
- 'REDIS_URL=redis://redis:6379'
19-
restart: unless-stopped
19+
- DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql/docmost?schema=public
20+
- REDIS_URL=redis://redis:6379
2021
volumes:
21-
- 'docmost:/app/data/storage'
22+
- "docmost:/app/data/storage"
2223
healthcheck:
2324
test:
2425
- CMD
2526
- curl
26-
- '-f'
27-
- 'http://127.0.0.1:3000'
27+
- "-f"
28+
- "http://127.0.0.1:3000"
2829
interval: 2s
2930
timeout: 10s
30-
retries: 30
31-
db:
32-
image: 'postgres:16-alpine'
31+
retries: 20
32+
postgresql:
33+
image: "postgres:16-alpine"
3334
environment:
3435
- POSTGRES_USER=$SERVICE_USER_POSTGRES
3536
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
3637
- POSTGRES_DB=docmost
37-
restart: unless-stopped
3838
volumes:
39-
- 'db_data:/var/lib/postgresql/data'
39+
- "postgresql-data:/var/lib/postgresql/data"
4040
healthcheck:
4141
test:
4242
- CMD-SHELL
43-
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
43+
- "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
4444
interval: 5s
45-
timeout: 20s
46-
retries: 10
45+
timeout: 10s
46+
retries: 20
4747
redis:
48-
image: 'redis:7.2-alpine'
49-
restart: unless-stopped
48+
image: "redis:7.2-alpine"
5049
volumes:
51-
- 'redis_data:/data'
50+
- "redis-data:/data"
5251
healthcheck:
5352
test:
5453
- CMD
5554
- redis-cli
5655
- PING
57-
interval: 30s
56+
interval: 5s
5857
timeout: 10s
59-
retries: 5
60-
volumes:
61-
docmost: null
62-
db_data: null
63-
redis_data: null
58+
retries: 20

templates/service-templates.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)