diff --git a/Docker/n8m/compose.yml b/Docker/n8m/compose.yml index da56ee1..875d4d5 100644 --- a/Docker/n8m/compose.yml +++ b/Docker/n8m/compose.yml @@ -1,3 +1,6 @@ +# 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 @@ -11,7 +14,11 @@ 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 +# - ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh + configs: + - source: n8n_init_script + target: /docker-entrypoint-initdb.d/init-data.sh + mode: 0755 # Important: make the script executable healthcheck: test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}'] interval: 5s