mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
add nextcloud
This commit is contained in:
8
nextcloud/env.example
Normal file
8
nextcloud/env.example
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
MARIADB_ROOT_PASSWORD=MtHvo7&+Xa8_ruu2PIhb3Jvypod_t7#f
|
||||||
|
MARIADB_PASSWORD=dLKA&9dsGEASiwskNd&d1hNF&w0EecYm
|
||||||
|
MARIADB_DATABASE=nextcloud
|
||||||
|
MARIADB_USER=nextcloud
|
||||||
|
PUID=1000
|
||||||
|
PGID=1000
|
||||||
|
TZ=Asia/Kolkata
|
||||||
|
EXTERNAL_DIR=/media/vault/nextcloud
|
||||||
25
nextcloud/imaginary.container
Normal file
25
nextcloud/imaginary.container
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Nextcloud Imaginary Container
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
Pod=nextcloud.pod
|
||||||
|
ContainerName=nextcloud_imaginary
|
||||||
|
Image=docker.io/nextcloud/aio-imaginary
|
||||||
|
Exec="/start.sh -enable-url-source -cors -return-size"
|
||||||
|
|
||||||
|
# Enable auto-update container
|
||||||
|
AutoUpdate=registry
|
||||||
|
# pass this to attach it to container
|
||||||
|
EnvironmentFile=./.env
|
||||||
|
# capabilities
|
||||||
|
AddCapability=SYS_NICE
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# pass this to autofill above variables
|
||||||
|
EnvironmentFile=%h/.config/containers/systemd/nextcloud/.env
|
||||||
|
Restart=always
|
||||||
|
TimeoutStartSec=300
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|
||||||
26
nextcloud/mariadb.container
Normal file
26
nextcloud/mariadb.container
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Nextcloud DB Container
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
Pod=nextcloud.pod
|
||||||
|
ContainerName=nextcloud_db
|
||||||
|
Image=docker.io/library/mariadb:lts
|
||||||
|
Exec='--transaction-isolation=READ-COMMITTED' '--log-bin=binlog' '--binlog-format=ROW' '--socket=/tmp/docker/mysqld.sock'
|
||||||
|
|
||||||
|
# Enable auto-update container
|
||||||
|
AutoUpdate=registry
|
||||||
|
# pass this to attach it to container
|
||||||
|
EnvironmentFile=./.env
|
||||||
|
|
||||||
|
Volume=%h/podman/nextcloud/db:/var/lib/mysql
|
||||||
|
Volume=%h/podman/nextcloud/.socket:/tmp/docker
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# pass this to autofill above variables
|
||||||
|
EnvironmentFile=%h/.config/containers/systemd/nextcloud/.env
|
||||||
|
Restart=always
|
||||||
|
TimeoutStartSec=300
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|
||||||
27
nextcloud/nextcloud.container
Normal file
27
nextcloud/nextcloud.container
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
[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
|
||||||
|
|
||||||
10
nextcloud/nextcloud.pod
Normal file
10
nextcloud/nextcloud.pod
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Nextcloud Pod
|
||||||
|
|
||||||
|
[Pod]
|
||||||
|
PodName=nextcloud
|
||||||
|
PublishPort=8080:80
|
||||||
|
|
||||||
|
# to satisfy nextcloud bitch permissions problems
|
||||||
|
UIDMap=1000:0:1
|
||||||
|
UIDMap=0:1:1000
|
||||||
26
nextcloud/redis.container
Normal file
26
nextcloud/redis.container
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Nextcloud Redis Container
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
Pod=nextcloud.pod
|
||||||
|
ContainerName=nextcloud_redis
|
||||||
|
Image=docker.io/library/redis:alpine
|
||||||
|
Exec=redis-server --unixsocket /tmp/docker/redis.sock --unixsocketperm 777
|
||||||
|
|
||||||
|
# Enable auto-update container
|
||||||
|
AutoUpdate=registry
|
||||||
|
# pass this to attach it to container
|
||||||
|
EnvironmentFile=./.env
|
||||||
|
|
||||||
|
Volume=%h/podman/nextcloud/redis:/data
|
||||||
|
Volume=%h/podman/nextcloud/.socket:/tmp/docker
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# pass this to autofill above variables
|
||||||
|
EnvironmentFile=%h/.config/containers/systemd/nextcloud/.env
|
||||||
|
Restart=always
|
||||||
|
TimeoutStartSec=300
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|
||||||
Reference in New Issue
Block a user