Skip to content

Commit

Permalink
improve db configs
Browse files Browse the repository at this point in the history
  • Loading branch information
compgeniuses committed Jan 28, 2024
1 parent f9aa69b commit 9bad37f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions imageroot/systemd/user/n8n-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
# This systemd unit starts a n8n instance using Podman.
# Most parts of this file come from podman-generate-systemd.
#

[Unit]
Description=Podman n8n server
BindsTo=n8n.service
After=n8n-redis.service n8n-pgsql.service

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
EnvironmentFile=%S/state/environment
Expand All @@ -28,12 +30,14 @@ ExecStart=/usr/bin/podman run \
--replace --name=%N \
--env-file=smarthost.env \
--env=n8n_* \
--env=DB_TYPE=postgresql \
--env=DB_TYPE=postgresdb \
--env=DB_POSTGRESDB_HOST=127.0.0.1 \
--env=DB_POSTGRESDB_PORT=5432 \
--env=DB_POSTGRESDB_DATABASE=${POSTGRES_DATABASE} \
--env=DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER} \
--env=DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_USER} \
--env=DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD} \
--env=e GENERIC_TIMEZONE=Europe/Berlin \
--env=TZ=Africa/Nairobi \
--env=EXECUTIONS_MODE=queue \
--env=QUEUE_BULL_REDIS_HOST=redis \
--env=QUEUE_HEALTH_CHECK_ACTIVE=true \
Expand Down
2 changes: 1 addition & 1 deletion imageroot/systemd/user/n8n.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

#
# This systemd unit starts a n8n gotenberg instance using Podman.
# This systemd unit starts a n8n instance using Podman.
# Most parts of this file come from podman-generate-systemd.
#

Expand Down

0 comments on commit 9bad37f

Please sign in to comment.