Skip to content

Commit

Permalink
feat: added volume in redis and postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed Dec 29, 2024
1 parent 9579fd6 commit 7707448
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 6 additions & 1 deletion imageroot/systemd/user/postgres-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ TimeoutStopSec=70
ExecStartPre=/bin/mkdir -p tmp
ExecStartPre=/bin/rm -f %t/postgres-app.pid %t/postgres-app.ctr-id
ExecStartPre=-runagent discover-smarthost
ExecStart=/usr/bin/podman run --conmon-pidfile %t/postgres-app.pid --cidfile %t/postgres-app.ctr-id --cgroups=no-conmon --pod-id-file %t/coolify.pod-id --replace -d --name postgres-app --env-file database.env ${POSTGRES_IMAGE}
ExecStart=/usr/bin/podman run --conmon-pidfile %t/postgres-app.pid --cidfile %t/postgres-app.ctr-id --cgroups=no-conmon --pod-id-file %t/coolify.pod-id --replace -d --name postgres-app \
--env-file database.env \
--volume postrges-data:/var/lib/postgresql/data:Z \
--volume %S/state/restore/:/docker-entrypoint-initdb.d/:Z \
--env TZ="Africa/Nairobi" \
${POSTGRES_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/postgres-app.ctr-id -t 10
ExecReload=/usr/bin/podman kill -s HUP postgres-app
SyslogIdentifier=%u
Expand Down
5 changes: 4 additions & 1 deletion imageroot/systemd/user/redis-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ TimeoutStopSec=70
ExecStartPre=/bin/mkdir -p tmp
ExecStartPre=/bin/rm -f %t/redis-app.pid %t/redis-app.ctr-id
ExecStartPre=-runagent discover-smarthost
ExecStart=/usr/bin/podman run --conmon-pidfile %t/redis-app.pid --cidfile %t/redis-app.ctr-id --cgroups=no-conmon --pod-id-file %t/coolify.pod-id --replace -d --name redis-app --env-file redis.env ${REDIS_IMAGE}
ExecStart=/usr/bin/podman run --conmon-pidfile %t/redis-app.pid --cidfile %t/redis-app.ctr-id --cgroups=no-conmon --pod-id-file %t/coolify.pod-id --replace -d --name redis-app \
--env-file redis.env \
--volume redis-data:/data:Z \
${REDIS_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/redis-app.ctr-id -t 10
ExecReload=/usr/bin/podman kill -s HUP redis-app
SyslogIdentifier=%u
Expand Down
5 changes: 4 additions & 1 deletion imageroot/systemd/user/soketi-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ TimeoutStopSec=70
ExecStartPre=/bin/mkdir -p tmp
ExecStartPre=/bin/rm -f %t/soketi-app.pid %t/soketi-app.ctr-id
ExecStartPre=-runagent discover-smarthost
ExecStart=/usr/bin/podman run --conmon-pidfile %t/soketi-app.pid --cidfile %t/soketi-app.ctr-id --cgroups=no-conmon --pod-id-file %t/coolify.pod-id --replace -d --name soketi-app --env-file soketi.env --volume coolify-ssh:/var/www/html/storage/app/ssh:Z ${COOLIFY_REALTIME_IMAGE}
ExecStart=/usr/bin/podman run --conmon-pidfile %t/soketi-app.pid --cidfile %t/soketi-app.ctr-id --cgroups=no-conmon --pod-id-file %t/coolify.pod-id --replace -d --name soketi-app \
--env-file soketi.env \
--volume coolify-ssh:/var/www/html/storage/app/ssh:Z \
${COOLIFY_REALTIME_IMAGE}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/soketi-app.ctr-id -t 10
ExecReload=/usr/bin/podman kill -s HUP soketi-app
SyslogIdentifier=%u
Expand Down

0 comments on commit 7707448

Please sign in to comment.