chg: [zato] upd README
This commit is contained in:
@@ -2,29 +2,31 @@
|
||||
|
||||
* Info
|
||||
|
||||
From: https://docs.n8n.io/hosting/installation/docker/#starting-n8n
|
||||
From Zato 3.2 : https://zato.io/en/docs/3.2/tutorial/01.html
|
||||
|
||||
|
||||
* Usage
|
||||
|
||||
Config info: https://support.rallly.co/self-hosting/configuration-options
|
||||
Lauching with web-proxy need to have a frontend connected
|
||||
Deployments of services : they should be mounted as volume for the docker
|
||||
|
||||
Requires a =smtp-server= provider to be functional, you can use
|
||||
=smtp-stub= charm to provide information to externally managed =SMTP=.
|
||||
Warning : if using keycloak the correct keycloak_public_key have to be manually placed in reso
|
||||
|
||||
#+begin_src yaml
|
||||
n8n:
|
||||
options:
|
||||
sender-email: #the sender email (beware the conf of your SMTP server)
|
||||
|
||||
smtp-stub:
|
||||
options:
|
||||
host: smtp.myhost.com
|
||||
port: 465
|
||||
connection-security: "ssl/tls"
|
||||
auth-method: password #IMPORTANT: if not present login password doesn’t work
|
||||
login: myuser
|
||||
password: myp4ssw0rd
|
||||
zato:
|
||||
docker-compose:
|
||||
volumes:
|
||||
- <PROJECT_FOLDER>/schemas:/opt/zato/current/extlib/schemas:rw
|
||||
- <PROJECT_FOLDER>/models:/opt/zato/current/extlib/models:rw
|
||||
- <PROJECT_FOLDER>/services:/opt/hot-deploy/services:rw
|
||||
- <PROJECT_FOLDER>/enmasse:/opt/hot-deploy/enmasse:rw
|
||||
- <PROJECT_FOLDER>/resources/keycloak_public_key.pem:/opt/hot-deploy/keycloak_public_key.pem:rw
|
||||
relations:
|
||||
web-proxy:
|
||||
frontend:
|
||||
domain: zato.<mondomain>.coop
|
||||
|
||||
#+end_src
|
||||
|
||||
|
||||
|
@@ -9,17 +9,17 @@ fi
|
||||
. "$CHARM_PATH/lib/common"
|
||||
|
||||
# Combined commands to be run as zato user
|
||||
local zato_commands="
|
||||
/opt/zato/current/bin/zato stop /opt/zato/env/qs-1/server1/ &&
|
||||
zato_commands="
|
||||
cd /opt/zato/env/qs-1 &&
|
||||
./start-server-fg.sh &
|
||||
"
|
||||
|
||||
# Execute commands as zato user
|
||||
exec_as_zato_in_container "/opt/zato/current/bin/zato stop /opt/zato/env/qs-1/server1/"
|
||||
sleep 3
|
||||
if ! exec_as_zato_in_container "$zato_commands"; then
|
||||
printf "Error: Failed to execute zato commands in container '%s'.\n" "$CONTAINER_NAME" >&2
|
||||
return 1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf "Zato restarted successfully in container '%s'.\n" "$CONTAINER_NAME" >&2
|
||||
|
||||
|
@@ -9,7 +9,7 @@ fi
|
||||
. "$CHARM_PATH/lib/common"
|
||||
|
||||
# Combined commands to be run as zato user
|
||||
local zato_commands="
|
||||
zato_commands="
|
||||
cd /opt/zato/env/qs-1 &&
|
||||
./start-server-fg.sh &
|
||||
"
|
||||
|
@@ -9,7 +9,7 @@ fi
|
||||
. "$CHARM_PATH/lib/common"
|
||||
|
||||
# Combined commands to be run as zato user
|
||||
local zato_commands="/opt/zato/current/bin/zato stop /opt/zato/env/qs-1/server1/"
|
||||
zato_commands="/opt/zato/current/bin/zato stop /opt/zato/env/qs-1/server1/"
|
||||
|
||||
# Execute commands as zato user
|
||||
if ! exec_as_zato_in_container "$zato_commands"; then
|
||||
|
Reference in New Issue
Block a user