-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add first docker and docker-compose support
- Loading branch information
1 parent
c1320ac
commit bec242d
Showing
5 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GENERIC_TIMEZONE=UTC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM docker.n8n.io/n8nio/n8n:latest AS target | ||
|
||
FROM node:19-alpine AS build | ||
RUN npm i npm@latest -g | ||
WORKDIR /build | ||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
FROM target as final | ||
WORKDIR /custom-nodes | ||
|
||
COPY --from=build /build . | ||
COPY --from=build /build/run.sh /run.sh | ||
|
||
WORKDIR /custom-nodes | ||
USER root | ||
RUN npm link | ||
|
||
USER node | ||
ENTRYPOINT [ "tini", "--", "/run.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: "3" | ||
|
||
services: | ||
n8n: | ||
image: n8n-custom-nodes | ||
restart: unless-stopped | ||
build: . | ||
ports: | ||
- "5678:5678" | ||
environment: | ||
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE} | ||
- N8N_LOG_LEVEL=debug | ||
volumes: | ||
- n8n-data:/home/node/.n8n | ||
|
||
volumes: | ||
n8n-data: | ||
name: n8n-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
mkdir -p ~/.n8n/nodes/ | ||
cd ~/.n8n/nodes/ | ||
npm link n8n-nodes-<...> | ||
/docker-entrypoint.sh |