mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2026-08-25 21:23:22 +00:00
Joplin: Upgrade PostgreSQL to version 18 in docker-compose (#34)
Updated PostgreSQL version Fixed the indentation issues
This commit is contained in:
@@ -11,24 +11,23 @@ This is the Joplin sync server.
|
|||||||
```yml
|
```yml
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:13.1
|
image: postgres:18
|
||||||
container_name: joplin-db
|
container_name: joplin-db
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_DB=joplin
|
- POSTGRES_DB=joplin
|
||||||
- POSTGRES_USER=joplin
|
- POSTGRES_USER=joplin
|
||||||
- POSTGRES_PASSWORD=joplin
|
- POSTGRES_PASSWORD=your_secure_password
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/var/lib/postgresql/data
|
- ./data:/var/lib/postgresql/data
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: joplin/server:latest
|
image: joplin/server:latest
|
||||||
container_name: joplin
|
container_name: joplin
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
ports:
|
ports:
|
||||||
- "22300:22300"
|
- "127.0.0.1:22300:22300"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- APP_BASE_URL=https://joplin.example.com
|
- APP_BASE_URL=https://joplin.example.com
|
||||||
@@ -37,7 +36,7 @@ services:
|
|||||||
- POSTGRES_HOST=db
|
- POSTGRES_HOST=db
|
||||||
- POSTGRES_DATABASE=joplin
|
- POSTGRES_DATABASE=joplin
|
||||||
- POSTGRES_USER=joplin
|
- POSTGRES_USER=joplin
|
||||||
- POSTGRES_PASSWORD=joplin
|
- POSTGRES_PASSWORD=your_secure_password
|
||||||
- POSTGRES_PORT=5432
|
- POSTGRES_PORT=5432
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user