diff --git a/n8m/.env b/n8m/.env index 0e8cd79..520bafd 100644 --- a/n8m/.env +++ b/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/n8m/compose.yml b/n8m/compose.yml index 875d4d5..619fbf3 100644 --- a/n8m/compose.yml +++ b/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