Replaces configs with local script to not use Swarm
This commit is contained in:
3
n8m/.env
3
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
|
||||
PATH_TO_APP=/home/user/docker/n8m/app
|
||||
PATH_TO_SCRIPT=/home/user/docker/n8m/init-data.sh
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user