mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-01 15:47:41 +08:00
15 lines
459 B
YAML
15 lines
459 B
YAML
services:
|
|
postgres:
|
|
image: ${TEST_IMAGE_POSTGRES:?set it from packages/testing/containers/postgres-versions.json}
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_DB=n8n
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=password
|
|
ports:
|
|
- 5432:5432
|
|
# Not PGDATA: Postgres 18+ moved it under /var/lib/postgresql/<major>/ and
|
|
# refuses to start when /var/lib/postgresql/data is mounted.
|
|
tmpfs:
|
|
- /var/lib/postgresql
|