Skip to content

Commit 793e6d1

Browse files
authored
Merge pull request coollabsio#2747 from alfinauzikri/main
[TEMPLATE] Add Docmost Template
2 parents 674fa4d + 0c40c0d commit 793e6d1

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

public/svgs/docmost.png

1.32 KB
Loading

templates/compose/docmost.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# documentation: https://docmost.com/docs/
2+
# slogan: Open-source collaborative wiki and documentation software
3+
# tags: documentation, opensource, wiki, confluence, knowledge-base, notion, realtime-collaboration, notion-alternative
4+
# logo: svgs/docmost.png
5+
# port: 3000
6+
7+
services:
8+
docmost:
9+
image: 'docmost/docmost:latest'
10+
depends_on:
11+
- db
12+
- redis
13+
environment:
14+
- SERVICE_FQDN_DOCMOST_3000
15+
- APP_SECRET=$SERVICE_BASE64_APPKEY
16+
- 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
20+
volumes:
21+
- 'docmost:/app/data/storage'
22+
healthcheck:
23+
test:
24+
- CMD
25+
- curl
26+
- '-f'
27+
- 'http://127.0.0.1:3000'
28+
interval: 2s
29+
timeout: 10s
30+
retries: 30
31+
db:
32+
image: 'postgres:16-alpine'
33+
environment:
34+
- POSTGRES_USER=$SERVICE_USER_POSTGRES
35+
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
36+
- POSTGRES_DB=docmost
37+
restart: unless-stopped
38+
volumes:
39+
- 'db_data:/var/lib/postgresql/data'
40+
healthcheck:
41+
test:
42+
- CMD-SHELL
43+
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
44+
interval: 5s
45+
timeout: 20s
46+
retries: 10
47+
redis:
48+
image: 'redis:7.2-alpine'
49+
restart: unless-stopped
50+
volumes:
51+
- 'redis_data:/data'
52+
healthcheck:
53+
test:
54+
- CMD
55+
- redis-cli
56+
- PING
57+
interval: 30s
58+
timeout: 10s
59+
retries: 5
60+
volumes:
61+
docmost: null
62+
db_data: null
63+
redis_data: null

0 commit comments

Comments
 (0)