mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
fix(core): Update docker compose setup for V1 images (#6642)
This commit is contained in:
parent
e57e85edf7
commit
05007d894e
|
@ -39,7 +39,6 @@ services:
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
- n8n_storage:/home/node/.n8n
|
- n8n_storage:/home/node/.n8n
|
||||||
command: /bin/sh -c "n8n start --tunnel"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
|
@ -7,6 +7,7 @@ volumes:
|
||||||
|
|
||||||
x-shared: &shared
|
x-shared: &shared
|
||||||
restart: always
|
restart: always
|
||||||
|
image: docker.n8n.io/n8nio/n8n
|
||||||
environment:
|
environment:
|
||||||
- DB_TYPE=postgresdb
|
- DB_TYPE=postgresdb
|
||||||
- DB_POSTGRESDB_HOST=postgres
|
- DB_POSTGRESDB_HOST=postgres
|
||||||
|
@ -60,14 +61,11 @@ services:
|
||||||
|
|
||||||
n8n:
|
n8n:
|
||||||
<<: *shared
|
<<: *shared
|
||||||
image: docker.n8n.io/n8nio/n8n
|
|
||||||
command: /bin/sh -c "n8n start --tunnel"
|
|
||||||
ports:
|
ports:
|
||||||
- 5678:5678
|
- 5678:5678
|
||||||
|
|
||||||
n8n-worker:
|
n8n-worker:
|
||||||
<<: *shared
|
<<: *shared
|
||||||
image: docker.n8n.io/n8nio/n8n
|
command: worker
|
||||||
command: /bin/sh -c "sleep 5; n8n worker"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- n8n
|
- n8n
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$#" -gt 0 ]; then
|
if [ "$#" -gt 0 ]; then
|
||||||
# Got started with arguments
|
# Got started with arguments
|
||||||
node "$@"
|
n8n "$@"
|
||||||
else
|
else
|
||||||
# Got started without arguments
|
# Got started without arguments
|
||||||
n8n
|
n8n
|
||||||
|
|
Loading…
Reference in a new issue