Use valkey caching in nextcloud
This commit is contained in:
parent
7a59d96e95
commit
24298d3fe1
4 changed files with 13 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
|||
[Unit]
|
||||
Requires=postgresql.service
|
||||
After=postgresql.service
|
||||
Requires=postgresql.service valkey.service
|
||||
After=postgresql.service valkey.service
|
||||
[Container]
|
||||
Image=docker.io/nextcloud
|
||||
Network=nginx.network
|
||||
Network=postgresql.network
|
||||
Network=valkey.network
|
||||
Entrypoint=sh
|
||||
Exec=-c "chown -Rh www-data:www-data /var/www/html && busybox crond && /entrypoint.sh apache2-foreground > /dev/null"
|
||||
Volume=nextcloud.volume:/var/www/html:U,Z
|
||||
|
|
7
home/etc/containers/systemd/valkey.container
Normal file
7
home/etc/containers/systemd/valkey.container
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Container]
|
||||
Image=cgr.dev/chainguard/valkey
|
||||
Network=valkey.network
|
||||
Volume=valkey.volume:/data:U,Z
|
||||
AutoUpdate=registry
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
3
home/etc/containers/systemd/valkey.network
Normal file
3
home/etc/containers/systemd/valkey.network
Normal file
|
@ -0,0 +1,3 @@
|
|||
[Network]
|
||||
IPv6=true
|
||||
Options=isolate=true
|
0
home/etc/containers/systemd/valkey.volume
Normal file
0
home/etc/containers/systemd/valkey.volume
Normal file
Loading…
Add table
Reference in a new issue