Skip to content

Commit

Permalink
Add next cloud quadlet
Browse files Browse the repository at this point in the history
  • Loading branch information
escoand authored Oct 20, 2024
1 parent 694b6b1 commit 69b8213
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions systemd/nextcloud.container
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[Unit]
Description=Nextcloud
After=mariadb.service
Wants=mariadb.service

[Container]
ContainerName=nextcloud
Environment=MYSQL_HOST=mariadb
Environment=NEXTCLOUD_INIT_HTACCESS=TRUE
Environment=NEXTCLOUD_TRUSTED_PROXIES=10.89.0.0/24
Environment=NEXTCLOUD_UPDATE=1
Environment=REDIS_HOST=redis
HealthCmd=/bin/sh -c "curl -sS http://localhost/status.php | grep -q '\"installed\":true'"
Image=docker.io/library/nextcloud:30.0.0
Label=caddy_0={$NEXTCLOUD_DOMAIN}
Label=caddy_0.reverse_proxy={{upstreams}}
Label=caddy_1={$REDIR_DOMAIN}
Label=caddy_1.redir={$REDIR_TARGET}
Secret=NEXTCLOUD_DATABASE,type=env,target=MYSQL_DATABASE
Secret=NEXTCLOUD_DATABASE_PASSWORD,type=env,target=MYSQL_PASSWORD
Secret=NEXTCLOUD_DATABASE_USER,type=env,target=MYSQL_USER
Secret=NEXTCLOUD_DOMAIN,type=env,target=NEXTCLOUD_TRUSTED_DOMAINS
Volume=nextcloud_app:/var/www/html:z
Volume=nextcloud_apps:/var/www/html/custom_apps:z
Volume=nextcloud_config:/var/www/html/config:z
Volume=nextcloud_data:/var/www/html/data:z

[Install]
WantedBy=multi-user.target default.target

0 comments on commit 69b8213

Please sign in to comment.