Skip to content

Commit 3000579

Browse files
committed
fix joplin
1 parent be03e0c commit 3000579

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

templates/compose/joplin.yaml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,40 @@
33
# tags: joplin
44
# logo: svgs/joplin.png
55
# port: 22300
6-
version: '3'
6+
77
services:
8-
db:
8+
postgres:
99
image: 'postgres:16'
1010
volumes:
11-
- './data/postgres:/var/lib/postgresql/data'
12-
restart: unless-stopped
11+
- joplin-postgresql-data:/var/lib/postgresql/data'
1312
environment:
14-
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
15-
- POSTGRES_USER=$SERVICE_USER_POSTGRES
13+
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_POSTGRES}
14+
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
1615
- POSTGRES_DB=joplin
17-
app:
16+
healthcheck:
17+
test:
18+
- CMD
19+
- pg_isready
20+
- -d
21+
- joplin
22+
interval: 10s
23+
timeout: 5s
24+
retries: 5
25+
26+
joplin:
1827
image: 'joplin/server:latest'
28+
platform: 'linux/amd64'
1929
depends_on:
20-
- db
21-
ports:
22-
- '22300:22300'
23-
restart: unless-stopped
30+
postgres:
31+
condition: service_healthy
2432
environment:
25-
- APP_PORT=22300
26-
- APP_BASE_URL=$SERVICE_FQDN_JOPLIN
33+
- SERVICE_FQDN_JOPLIN_22300
34+
- APP_BASE_URL=${SERVICE_FQDN_JOPLIN}
2735
- DB_CLIENT=pg
28-
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
36+
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_POSTGRES}
2937
- POSTGRES_DATABASE=joplin
30-
- POSTGRES_USER=$SERVICE_USER_POSTGRES
38+
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
3139
- POSTGRES_PORT=5432
32-
- POSTGRES_HOST=db
33-
40+
- POSTGRES_HOST=postgres
41+
# Default login is "admin@localhost" and password "admin"
42+

0 commit comments

Comments
 (0)