mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
24 lines
461 B
YAML
24 lines
461 B
YAML
|
volumes:
|
||
|
postgres-data:
|
||
|
|
||
|
services:
|
||
|
postgres:
|
||
|
image: postgres:16-alpine
|
||
|
restart: unless-stopped
|
||
|
volumes:
|
||
|
- postgres-data:/var/lib/postgresql/data
|
||
|
environment:
|
||
|
- POSTGRES_DB=n8n
|
||
|
- POSTGRES_PASSWORD=password
|
||
|
|
||
|
n8n:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile
|
||
|
volumes:
|
||
|
- ..:/workspaces:cached
|
||
|
command: sleep infinity
|
||
|
environment:
|
||
|
DB_TYPE: postgresdb
|
||
|
DB_POSTGRESDB_PASSWORD: password
|