Commit Graph

63 Commits

Author SHA1 Message Date
Nick Stokoe
b40cb39327 templates/bin/backup - better protect against failures
I experienced a problem which stopped this backup from running, so
let's allow it to fail more gracefully and not leave the backup in a
state it can't resume from, if possible.
2024-01-02 14:13:10 +00:00
Nick Stokoe
8ae5a1aa60 templates/docker-compose/docker-compose.yml - remove mopidy 2024-01-02 14:12:35 +00:00
Nick Stokoe
598c215a5a templates/docker-compose/upmpdcli/Dockerfile - upgrade alpine image 2024-01-02 14:12:07 +00:00
Nick Stokoe
5462cb9073 templates/docker-compose/docker-compose.yml - upgrade nextcloud 2024-01-02 14:11:51 +00:00
Nick Stokoe
e19f124bb6 templates/borg.service - use templated paths/docker command 2023-04-18 08:58:02 +01:00
Nick Stokoe
a83123377f templates/bin/backup - use templated paths/docker command 2023-04-18 08:57:59 +01:00
Nick Stokoe
56bedda69e templates/bin/{borg,borgmatic} - helper shims for maintainance 2023-04-18 08:29:37 +01:00
Nick Stokoe
f241e98998 templates/bin/backup - put nc into maint mode before backing up
Hoping this will avoid problems with NC restarting broken
2023-04-18 08:29:29 +01:00
Nick Stokoe
86653e5f79 borgmatic/backup.sh - fix printf bug
Interpolation can and does insert % placeholders into the printf
template text - although not valid ones as they're intended for
python.

So be more careful!  Put all inserted text into the parameters to
printf, or use echo.

Also, keep some of the alterations used whilst diagnosing this.
2023-04-15 22:36:57 +01:00
Nick Stokoe
bd3ad70af4 backup/backup.sh - only create backup whilst services down; check after 2023-04-13 08:02:08 +01:00
Nick Stokoe
88d875d638 backup.sh - log with timestamps 2023-04-12 20:20:34 +01:00
Nick Stokoe
c8b1d00230 templates/docker-compose/borgmatic/backup.sh - refinements
Trap failures, ensure cleanup.

Send an email even if we fail.

Break borg locks in cleanup.

Implement testing smtp emails.
2023-04-12 20:01:11 +01:00
Nick Stokoe
68b73990b4 borgmatic config.yaml - set the archive label meaningfully
Currently {hostname} expands to an anonymous number. Set this part of
the archive name to something we can recognise.
2023-04-12 20:01:11 +01:00
Nick Stokoe
fe9f3d9bdd templates/docker-compose/mopidy 2023-04-06 15:14:46 +01:00
Nick Stokoe
ae0ddaea20 templates/docker-compose/docker-compose.yml - add link to doveadm trick 2023-04-04 12:51:25 +01:00
Nick Stokoe
7541bde9c6 snackpot.yml - fixup, enable services 2023-04-04 12:51:00 +01:00
Nick Stokoe
2d3d9217e8 snackpot.yml etc. - add borgmatic backup container 2023-04-04 11:52:08 +01:00
Nick Stokoe
a6872077a9 roles/docker_compose/tasks/main.yml - enable docker buildkit
So that COPY --chmod works, which is useful for an ansible copy which
doesn't preserve permissions.
2023-04-03 22:09:25 +01:00
Nick Stokoe
8d7163e7e6 requirements.yml,SETUP.md - prerequisites 2023-04-03 16:51:24 +01:00
Nick Stokoe
c526c6e9c0 INSTALL.md 2023-04-03 16:39:43 +01:00
Nick Stokoe
018b7ec9af templates/docker-compose/docker-compose.yml - upgrade to NC 26 2023-04-01 18:58:09 +01:00
Nick Stokoe
d088d95f1d templates/docker-compose/docker-compose.yml - bump nextcloud to v25 2022-12-12 12:29:48 +00:00
Nick Stokoe
ea8c22f1ae templates/docker-compose/docker-compose.yml - fix disappearing ext share links
See
https://github.com/nextcloud/server/issues/25852#issuecomment-997964401

External mount share links are disappearing after a few minutes.
2022-08-18 10:44:30 +01:00
Nick Stokoe
c58eed2657 docker-compose.yml - update nextcloud to v24
The upgrade was actually executed in steps, v22 -> v23 -> v24, and the
net result committed.
2022-07-01 06:53:37 +01:00
Nick Stokoe
181a1967f9 name MiniDLNA and UpMpdCli servers distinctly
So we can tell which one we are seeing in listings
2021-12-04 15:59:26 +00:00
Nick Stokoe
31ec4b2d2e fixup hardwired paths 2021-12-04 15:58:52 +00:00
Nick Stokoe
32cabdd1f4 docker-compose.yml etc. - proxy jellyfin on virtual host
nominally working, although some hard-wired values to remove
2021-12-03 17:59:35 +00:00
Nick Stokoe
12f3fcbaaf docker-compose.yml - reverse proxy the jellyfin container as virtual host
we need to take it of host network mode, add it to the proxy-tier and
default networks, then enable proxying and lets-encrypt.

Tested, works.
2021-12-03 17:59:35 +00:00
Nick Stokoe
15ce90e098 docker-compose/docker-compose.yml - upgrade nextcloud to v22 2021-12-03 17:59:35 +00:00
Nick Stokoe
bb20922852 templates/docker-compose/mopidy - update tracked commit 2021-12-03 17:59:35 +00:00
Nick Stokoe
3d09f9d1e9 docker-compose/docker-compose.yml - upgrade nextcloud and others 2021-12-03 17:59:35 +00:00
Nick Stokoe
2512d2ef31 docker-compose/docker-compose.yml - add extra_hosts snackpot:host-gateway for mopidy 2021-12-03 17:59:35 +00:00
Nick Stokoe
a6290fe82d docker-compose/upmpdcli/upmpdcli.conf - don't check the content format
As this will disallow things that should be allowed.
2021-12-03 17:59:35 +00:00
Nick Stokoe
a4f0664663 docker-compose/upmpdcli/Dockerfile - explicitly specify the config file
In  the command parameters for upmpdcli - otherwise it seems not to be
picked up.
2021-12-03 17:59:35 +00:00
Nick Stokoe
5b3440457f add jellyfin 2021-12-03 17:59:35 +00:00
Nick Stokoe
73821733cf docker-compose/upmpdcli/Dockerfile - use python3 not 2 2021-12-03 17:59:35 +00:00
Nick Stokoe
32aaf0fe6b docker-compose.yml - set mopidy to restart: always 2021-12-03 17:59:35 +00:00
Nick Stokoe
17a04fc559 docker-compose.yml - set upmpdcli to restart: always 2021-12-03 17:59:35 +00:00
Nick Stokoe
18ec2c5320 docker-compose/upmpdcli/Dockerfile - add openssl to the package list
upmpdcli seems to use this, optionally
2021-12-03 17:59:35 +00:00
Nick Stokoe
d3fa11cf90 docker-compose.yml - add local audio access to mopidy 2021-12-03 17:59:35 +00:00
Nick Stokoe
caca059da0 snackpot.yml, docker-compose.yml - add mopidy and upmpdcli services
mopidy includes icecast
2021-12-03 17:59:35 +00:00
Nick Stokoe
625b2a656a docker-compose.yml - add MINIDLNA_INOTIFY=yes to minidlna
We want it to spot file changes
2021-12-03 17:59:35 +00:00
Nick Stokoe
71d8edab0a snackpot.yml, docker-compose.yml - these nextcloud paths can be fixed 2021-12-03 17:59:35 +00:00
Nick Stokoe
c160ba5193 snackpot.yml etc. - refine docker-compose config deploy
The main job of this commit:
- Be explicit about templates: expect the .j2 extension
- Copy all other files, so that they can be binary
- Don't deploy dotfiles or dotdirectories.

This snuck in:
- Remove `test` tag
- Refine some descriptions
2021-12-03 17:59:35 +00:00
Nick Stokoe
3aaa6deb34 templates/docker-compose/docker-compose.yml - remove some comment cruft 2021-12-03 17:59:35 +00:00
Nick Stokoe
3acc92043c snackpot.yml - add minidlna containiner
set all ports with firewall_ports
2021-12-03 17:59:35 +00:00
Nick Stokoe
375172e34e roles/ufw/tasks/main.yml - allow more flexible port config
specifically, allow specifying protocol
2021-12-03 17:59:35 +00:00
Nick Stokoe
fcad61a6c4 roles/docker_compose/tasks/main.yml - set docker data-root dir 2021-12-03 17:59:35 +00:00
Nick Stokoe
02b37f5680 docker-compose/docker-compose.yml - add nextcloud_cron
For running the cron job
2021-12-03 17:59:35 +00:00
Nick Stokoe
8df232dd91 templates/docker-compose/docker-compose.yml - bump nextcloud to v18.0.13 2021-12-03 17:59:35 +00:00