From ae4a59a1ccbb6c8ef1c68744734700dd0d502681 Mon Sep 17 00:00:00 2001 From: tobbbs <1+tobbbs@noreply.localhost> Date: Tue, 21 Jul 2026 08:28:03 +0200 Subject: [PATCH] Update compose.yaml --- compose.yaml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/compose.yaml b/compose.yaml index 1299751..2371a98 100644 --- a/compose.yaml +++ b/compose.yaml @@ -21,6 +21,66 @@ services: - DOCKHAND_SERVER_URL=wss://hydra.doeringer.eu/api/hawser/connect - TOKEN=Dj-xnGfioO4x2UcAS72ipxRzhP9PSJUS6F8R66vI2WQ + +volumes: + db_storage: + n8n_storage: + +services: + postgres: + image: postgres:16 + restart: always + environment: + - POSTGRES_USER + - POSTGRES_PASSWORD + - POSTGRES_DB + - POSTGRES_NON_ROOT_USER + - POSTGRES_NON_ROOT_PASSWORD + volumes: + - db_storage:/var/lib/postgresql/data + - ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh + healthcheck: + test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}'] + interval: 5s + timeout: 5s + retries: 10 + + n8n: + image: docker.n8n.io/n8nio/n8n:${N8N_VERSION} + restart: always + networks: + - bragi-local + environment: + - DB_TYPE=postgresdb + - DB_POSTGRESDB_HOST=postgres + - DB_POSTGRESDB_PORT=5432 + - DB_POSTGRESDB_DATABASE=${POSTGRES_DB} + - DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER} + - DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD} + - N8N_RUNNERS_MODE=external + - N8N_RUNNERS_AUTH_TOKEN=${RUNNERS_AUTH_TOKEN} + - N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0 +# ports: +# - 5678:5678 + links: + - postgres + volumes: + - n8n_storage:/home/node/.n8n + depends_on: + postgres: + condition: service_healthy + + n8n-runner: + image: n8nio/runners:${N8N_VERSION} + restart: always + environment: + - N8N_RUNNERS_AUTH_TOKEN=${RUNNERS_AUTH_TOKEN} + - N8N_RUNNERS_TASK_BROKER_URI=http://n8n:5679 + networks: + - bragi-local + depends_on: + - n8n + networks: bragi-local: external: true \ No newline at end of file