summaryrefslogtreecommitdiff
path: root/roles/elevate/media/templates/nextcloud.service.j2
blob: 3406737f3d9da81c478c392ea55b9e81a0390dd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Nextcloud
After=docker.service
Requires=docker.service

[Service]
ExecStart=/usr/bin/systemd-docker --cgroups name=systemd run --rm --network host --name %n -m {{ (ansible_memtotal_mb * nextcloud_memory_ratio) | round | int }}M -v /srv/nextcloud/config/nextcloud-fpm.conf:/usr/local/etc/php-fpm.d/zzzzz.conf -v /srv/nextcloud/config/nextcloud:/var/www/html/config -v /srv/ncdata/nextcloud:/var/www/html/data -v /srv/smbdata/share:/srv/external/share -v /srv/nextcloud/www:/var/www/html nextcloud:{{ inventory_hostname }}
Restart=always
RestartSec=10
Type=notify
NotifyAccess=all
TimeoutStartSec=30
TimeoutStopSec=5

[Install]
WantedBy=multi-user.target