Add nextcloud
This commit is contained in:
parent
827118c35b
commit
c9b0a7558b
2 changed files with 47 additions and 0 deletions
38
containers/nextcloud.fish
Executable file
38
containers/nextcloud.fish
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
set -l container_name nextcloud
|
||||
set -l container_volumes_dir ~/volumes/$container_name
|
||||
set -l container_nextcloud_dir $container_volumes_dir/nextcloud
|
||||
set -l db_env_file $container_volumes_dir/.db.env
|
||||
|
||||
if not test -f $db_env_file
|
||||
echo "$db_env_file missing"
|
||||
exit 1
|
||||
end
|
||||
|
||||
mkdir -p $container_nextcloud_dir
|
||||
|
||||
|
||||
set -l db_container_name nextcloud-postgres
|
||||
set -l db_container_dir $container_volumes_dir/db
|
||||
|
||||
mkdir -p $db_container_dir
|
||||
|
||||
|
||||
podman-default-create \
|
||||
$container_name \
|
||||
--network traefik \
|
||||
-v $container_nextcloud_dir:/var/www/html:Z \
|
||||
-e POSTGRES_HOST=$db_container_name \
|
||||
--env-file $db_env_file \
|
||||
--label "io.containers.autoupdate=registry" \
|
||||
docker.io/library/nextcloud:24-apache
|
||||
|
||||
|
||||
podman-default-create \
|
||||
$db_container_name \
|
||||
--network traefik \
|
||||
-v $db_container_dir:/var/lib/postgresql/data:Z \
|
||||
--env-file $db_env_file \
|
||||
--label "io.containers.autoupdate=registry" \
|
||||
docker.io/library/postgres:alpine
|
|
@ -16,6 +16,11 @@ http:
|
|||
service: gitea
|
||||
tls:
|
||||
certResolver: le
|
||||
to_nextcloud:
|
||||
rule: Host(`nextcloud.mo8it.xyz`)
|
||||
service: nextcloud
|
||||
tls:
|
||||
certResolver: le
|
||||
|
||||
services:
|
||||
dudu_hugo:
|
||||
|
@ -30,3 +35,7 @@ http:
|
|||
loadBalancer:
|
||||
servers:
|
||||
- url: http://gitea:3000
|
||||
nextcloud:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://nextcloud
|
||||
|
|
Loading…
Add table
Reference in a new issue