From 1168ca4e587c54df9c8bffbcabcef5c9f22c3335 Mon Sep 17 00:00:00 2001 From: Maksym Buz <79866323+xopek-by@users.noreply.github.com> Date: Wed, 30 Jul 2025 14:41:14 +0200 Subject: [PATCH] Replaces configs with local script to not use Swarm --- Docker/n8m/.env | 3 ++- Docker/n8m/compose.yml | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Docker/n8m/.env b/Docker/n8m/.env index 0e8cd79..520bafd 100644 --- a/Docker/n8m/.env +++ b/Docker/n8m/.env @@ -6,4 +6,5 @@ POSTGRES_NON_ROOT_USER=changeUser POSTGRES_NON_ROOT_PASSWORD=changePassword PATH_TO_POSTGRES=/home/user/docker/n8m/postgres -PATH_TO_APP=/home/user/docker/n8m/app \ No newline at end of file +PATH_TO_APP=/home/user/docker/n8m/app +PATH_TO_SCRIPT=/home/user/docker/n8m/init-data.sh \ No newline at end of file diff --git a/Docker/n8m/compose.yml b/Docker/n8m/compose.yml index 875d4d5..619fbf3 100644 --- a/Docker/n8m/compose.yml +++ b/Docker/n8m/compose.yml @@ -1,6 +1,3 @@ -# This compose file uses configs for Portainer. Uncomment the local script lines if you want to use it. -# Comment out the configs section if you don't use Portainer. - services: postgres: image: postgres:16 @@ -14,7 +11,7 @@ services: volumes: # PostgreSQL will be stored in a local folder - ${PATH_TO_POSTGRES}:/var/lib/postgresql/data -# - ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh + - ${PATH_TO_SCRIPT}:/docker-entrypoint-initdb.d/init-data.sh configs: - source: n8n_init_script target: /docker-entrypoint-initdb.d/init-data.sh