2021-01-18 12:13:26 +02:00
|
|
|
# This is a sample docker-compose file that can be used to run Joplin Server
|
|
|
|
# along with a PostgreSQL server.
|
|
|
|
#
|
|
|
|
# All environment variables are optional. If you don't set them, you will get a
|
|
|
|
# warning from docker-compose, however the app should use working defaults.
|
|
|
|
|
2020-12-28 13:48:47 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2021-12-01 15:52:38 +02:00
|
|
|
image: postgres:13
|
2021-05-25 17:20:22 +02:00
|
|
|
volumes:
|
|
|
|
- ./data/postgres:/var/lib/postgresql/data
|
2020-12-28 13:48:47 +02:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
2021-01-18 12:13:26 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_DB=${POSTGRES_DATABASE}
|
|
|
|
app:
|
|
|
|
image: joplin/server:latest
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
ports:
|
|
|
|
- "22300:22300"
|
|
|
|
restart: unless-stopped
|
2020-12-28 13:48:47 +02:00
|
|
|
environment:
|
2021-07-07 22:25:11 +02:00
|
|
|
- APP_PORT=22300
|
2021-01-18 12:13:26 +02:00
|
|
|
- APP_BASE_URL=${APP_BASE_URL}
|
|
|
|
- DB_CLIENT=pg
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
- POSTGRES_DATABASE=${POSTGRES_DATABASE}
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PORT=${POSTGRES_PORT}
|
2021-07-07 22:25:11 +02:00
|
|
|
- POSTGRES_HOST=db
|