2022-11-13 01:10:26 +01:00
|
|
|
version: "3"
|
|
|
|
|
2022-12-11 23:24:48 +01:00
|
|
|
vars:
|
|
|
|
TMP_DIR: /tmp/container-server
|
|
|
|
|
2022-11-13 01:10:26 +01:00
|
|
|
tasks:
|
|
|
|
mc-update:
|
|
|
|
desc: update minecraft mods
|
|
|
|
cmds:
|
2022-12-10 18:16:50 +01:00
|
|
|
- "docker exec -it -u amp -w /home/amp/.ampdata/instances/Main/Minecraft minecraft bash update_all.sh"
|
2022-11-13 01:10:26 +01:00
|
|
|
|
|
|
|
caddy-reload:
|
|
|
|
desc: Reload Caddy config
|
|
|
|
cmds:
|
2022-12-10 18:16:50 +01:00
|
|
|
- "docker exec -w /etc/caddy proxy caddy reload"
|
|
|
|
|
|
|
|
mail-setup:
|
|
|
|
desc: Docker-Mailserver setup utility
|
|
|
|
cmds:
|
2023-08-23 23:23:46 +02:00
|
|
|
- "docker exec -i mail setup {{.CLI_ARGS}}"
|
2022-12-11 23:24:48 +01:00
|
|
|
|
2023-08-23 20:53:27 +02:00
|
|
|
occ:
|
|
|
|
desc: Nextcloud cli
|
|
|
|
cmds:
|
|
|
|
- "docker exec -u 33 nextcloud php ./occ {{.CLI_ARGS}}"
|
|
|
|
|
2022-12-11 23:24:48 +01:00
|
|
|
psql-dump:
|
|
|
|
desc: Dump postgres database for backup or update
|
|
|
|
cmds:
|
|
|
|
- mkdir -p {{.TMP_DIR}}
|
|
|
|
- docker exec pg-{{.CLI_ARGS}} pg_dumpall -U {{.CLI_ARGS}} > {{.TMP_DIR}}/{{.CLI_ARGS}}.sql
|
|
|
|
- ls -la {{.TMP_DIR}}/{{.CLI_ARGS}}.sql
|
|
|
|
|
|
|
|
psql-restore:
|
|
|
|
desc: Load postgres database for restore
|
|
|
|
cmds:
|
2023-08-24 03:14:06 +02:00
|
|
|
- docker exec -i pg-{{.CLI_ARGS}} psql --echo-errors -U {{.CLI_ARGS}} < {{.TMP_DIR}}/{{.CLI_ARGS}}.sql
|
2022-12-11 23:24:48 +01:00
|
|
|
|
|
|
|
psql-clear-tmp:
|
|
|
|
desc: Clear temporary sql files created by psql-dump
|
|
|
|
cmds:
|
|
|
|
- rm -rv {{.TMP_DIR}}
|