34 lines
811 B
YAML
34 lines
811 B
YAML
version: "3"
|
|
|
|
services:
|
|
n8n-app:
|
|
image: matthijs166/n8n-websocket
|
|
container_name: n8n-app
|
|
env_file: .env
|
|
restart: always
|
|
depends_on:
|
|
- n8n-db-postgres
|
|
volumes:
|
|
- ./.n8n:/home/node/.n8n #Configuration Folder
|
|
- ./scripts:/scripts #Optional
|
|
- ./git/:/git #Optional
|
|
- backups:/mnt/backups #Optional
|
|
ports:
|
|
- "3334:5678"
|
|
|
|
n8n-db-postgres:
|
|
container_name: n8n-db-postgres
|
|
image: 'postgres:latest'
|
|
restart: always
|
|
env_file: .env
|
|
#ports:
|
|
# - 5432:5432
|
|
volumes:
|
|
- ./postgres-data/:/var/lib/postgresql/data/
|
|
|
|
volumes:
|
|
backups:
|
|
driver_opts:
|
|
type: "nfs"
|
|
o: "addr=10.0.10.10,nolock,soft,rw"
|
|
device: ":/mnt/General_Tank/DockerBinds/docker/backups" |