1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-12-28 06:33:41 +03:00

fix(core): Update docker compose setup for V1 images (#6642)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-07-12 11:55:19 +02:00 committed by GitHub
parent e57e85edf7
commit 05007d894e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -1,7 +1,7 @@
#!/bin/sh
if [ "$#" -gt 0 ]; then
# Got started with arguments
node "$@"
n8n "$@"
else
# Got started without arguments
n8n