2021-01-18 12:13:26 +02:00
|
|
|
# For development this compose file starts the database only. The app can then
|
|
|
|
# be started using `npm run start-dev`, which is useful for development, because
|
|
|
|
# it means the app Docker file doesn't have to be rebuilt on each change.
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:13.1
|
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-06-17 17:51:25 +02:00
|
|
|
|
|
|
|
# Use this to specify additional Postgres
|
|
|
|
# config parameters:
|
|
|
|
#
|
|
|
|
# command:
|
|
|
|
# - "postgres"
|
|
|
|
# - "-c"
|
|
|
|
# - "log_min_duration_statement=0"
|