mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
28 lines
588 B
Plaintext
28 lines
588 B
Plaintext
[Unit]
|
|
Description=Nextcloud Container
|
|
|
|
[Container]
|
|
Pod=nextcloud.pod
|
|
ContainerName=nextcloud
|
|
Image=lscr.io/linuxserver/nextcloud:latest
|
|
|
|
# Enable auto-update container
|
|
AutoUpdate=registry
|
|
# pass this to attach it to container
|
|
EnvironmentFile=./.env
|
|
|
|
Volume=%h/podman/nextcloud/config:/config
|
|
Volume=%h/podman/nextcloud/.socket:/tmp/docker
|
|
Volume=%h/nextcloud:/data
|
|
Volume=${EXTERNAL_DIR}:${EXTERNAL_DIR}
|
|
|
|
[Service]
|
|
# pass this to autofill above variables
|
|
EnvironmentFile=%h/.config/containers/systemd/nextcloud/.env
|
|
Restart=always
|
|
TimeoutStartSec=300
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
|