From 05007d894e1bfa3550cfd865f85c2844b3db6eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 12 Jul 2023 11:55:19 +0200 Subject: [PATCH] fix(core): Update docker compose setup for V1 images (#6642) --- docker/compose/withPostgres/docker-compose.yml | 1 - docker/compose/withPostgresAndWorker/docker-compose.yml | 6 ++---- docker/images/n8n/docker-entrypoint.sh | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docker/compose/withPostgres/docker-compose.yml b/docker/compose/withPostgres/docker-compose.yml index 9ee06874b0..57f83f328a 100644 --- a/docker/compose/withPostgres/docker-compose.yml +++ b/docker/compose/withPostgres/docker-compose.yml @@ -39,7 +39,6 @@ services: - postgres volumes: - n8n_storage:/home/node/.n8n - command: /bin/sh -c "n8n start --tunnel" depends_on: postgres: condition: service_healthy diff --git a/docker/compose/withPostgresAndWorker/docker-compose.yml b/docker/compose/withPostgresAndWorker/docker-compose.yml index 263c479d71..038490e941 100644 --- a/docker/compose/withPostgresAndWorker/docker-compose.yml +++ b/docker/compose/withPostgresAndWorker/docker-compose.yml @@ -7,6 +7,7 @@ volumes: x-shared: &shared restart: always + image: docker.n8n.io/n8nio/n8n environment: - DB_TYPE=postgresdb - DB_POSTGRESDB_HOST=postgres @@ -60,14 +61,11 @@ services: n8n: <<: *shared - image: docker.n8n.io/n8nio/n8n - command: /bin/sh -c "n8n start --tunnel" ports: - 5678:5678 n8n-worker: <<: *shared - image: docker.n8n.io/n8nio/n8n - command: /bin/sh -c "sleep 5; n8n worker" + command: worker depends_on: - n8n diff --git a/docker/images/n8n/docker-entrypoint.sh b/docker/images/n8n/docker-entrypoint.sh index 42419b3924..508655ea33 100755 --- a/docker/images/n8n/docker-entrypoint.sh +++ b/docker/images/n8n/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/sh if [ "$#" -gt 0 ]; then # Got started with arguments - node "$@" + n8n "$@" else # Got started without arguments n8n