You are here:
< Back

PM2

We have an option to run custom NodeJs scripts. As a running environment, we are using pm2.

Download the sample pm2-compose.yml file and configure it for your own server.

Environments:

  • URL={PROTOCOL}://{DOMAIN}
    • {PROTOCOL}: Should be the same value as master-protocol field at the master compose!
    • {DOMAIN}: Should be the same value as master-host field at the master compose!

Volumes:

  • You can change the default storage path of the pm2 application. For that, you have to configure the left side from the colon at the volume section
    • This folder does not have to exists, Docker will create if not.
    • If it exists, it must be empty!

Networks:

  • {NGINX_NETWORK}: Replace with the Nginx’s network name.

N8N

We have an option to automate the workflows. We are using n8n for this purpose.

Download the sample n8n-compose.yml file and configure it for your own server.

Environments:

  • N8N_BASIC_AUTH_USER=
    • Username for flow service.
  • N8N_BASIC_AUTH_PASSWORD=
    • The password of the flow user.
    • Feel free to generate
  • N8N_HOST=
    • {DOMAIN}: Should be the same value as master-host field at the master compose
  • N8N_PROTOCOL=
    • {PROTOCOL}: Should be the same value as master-protocol field at the master compose!
  • WEBHOOK_TUNNEL_URL={PROTOCOL}://{DOMAIN}/flow/
    • {PROTOCOL}: Should be the same value as N8N_PROTOCOL field!
    • {DOMAIN}: Should be the same value as N8N_HOST field!
  • DB_POSTGRESDB_PASSWORD={DB_POSTGRESDB_PASSWORD}
    • {DB_POSTGRESDB_PASSWORD}: This value will be the password for your n8n Postgres database.
      • This variable occurring in n8n_postgres container and should be the same value!

Volumes:

  • You can change the default storage path of the n8n application. For that, you have to configure the left side from the colon at the volume section
    • This folder does not have to exists, Docker will create if not.
    • If it exists, it must be empty!

N8N-Postgres

Environments:

  • DB_POSTGRESDB_PASSWORD={DB_POSTGRESDB_PASSWORD}
    • {DB_POSTGRESDB_PASSWORD}: This value will be the password for your n8n Postgres database.
      • This variable occurring in the n8n container and should be the same value!

Volumes:

  • You can change the default storage path of the n8n-postgres application. For that, you have to configure the left side from the colon at the volume section
    • This folder does not have to exists, Docker will create if not.
    • If it exists, it must be empty!

Networks:

  • {NGINX_NETWORK}: Replace with the Nginx’s network name.