2021-01-18 12:13:26 +02:00
|
|
|
# For development this compose file starts the database only. The app can then
|
2024-01-26 22:19:28 +02:00
|
|
|
# be started using `yarn start-dev`, which is useful for development, because
|
2021-01-18 12:13:26 +02:00
|
|
|
# it means the app Docker file doesn't have to be rebuilt on each change.
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2023-11-12 18:16:04 +02:00
|
|
|
image: postgres:16
|
2021-10-10 19:02:42 +02:00
|
|
|
command: postgres -c work_mem=100000
|
2021-01-18 12:13:26 +02:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=joplin
|
|
|
|
- POSTGRES_USER=joplin
|
|
|
|
- POSTGRES_DB=joplin
|
2021-12-01 15:52:38 +02:00
|
|
|
|
2021-06-17 17:51:25 +02:00
|
|
|
# Use this to specify additional Postgres
|
|
|
|
# config parameters:
|
|
|
|
#
|
|
|
|
# command:
|
|
|
|
# - "postgres"
|
|
|
|
# - "-c"
|
|
|
|
# - "log_min_duration_statement=0"
|