Skip to content

Commit

Permalink
fix(core): Update docker compose setup for V1 images (#6642)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Jul 12, 2023
1 parent e57e85e commit 05007d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion docker/compose/withPostgres/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions docker/compose/withPostgresAndWorker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ volumes:

x-shared: &shared
restart: always
image: docker.n8n.io/n8nio/n8n
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion docker/images/n8n/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
if [ "$#" -gt 0 ]; then
# Got started with arguments
node "$@"
n8n "$@"
else
# Got started without arguments
n8n
Expand Down

0 comments on commit 05007d8

Please sign in to comment.