-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathctt.toml
More file actions
105 lines (95 loc) · 4.02 KB
/
Copy pathctt.toml
File metadata and controls
105 lines (95 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# https://copier-template-tester.kyleking.me/#configuration-file
# minimal defaults required to generate a project
[defaults]
_pre_tasks = [
"tests/check_missing_envs.sh",
"tests/check_missing_paths.sh",
]
test = true
letsencrypt_challenge = "tls"
letsencrypt_email = "foo@bar.baz"
[output.".ctt/defaults"]
_post_tasks = [
"! ls .envs/letsencrypt.env",
"! ls compose.*.yaml",
"docker compose config --format json | jq --exit-status '.services | length == 1'",
"docker compose config --format json | jq --exit-status '.services[\"traefik\"] | .container_name == \"traefik\"'",
"prek run --skip mdformat --files ./*",
]
[output.".ctt/no_test"]
test = false
_pre_tasks = []
_post_tasks = [
"! ls tests/",
]
[output.".ctt/dns_challenge"]
letsencrypt_challenge = "dns"
_post_tasks = [
"ls .envs/letsencrypt.env",
"docker compose config --format json | jq --exit-status '.services | length == 1'",
"docker compose config --format json | jq --exit-status '.services[\"traefik\"] | .container_name == \"traefik\"'",
"prek run --skip mdformat --files ./*",
]
[output.".ctt/pihole"]
use_pihole = true
_post_tasks = [
"docker compose config --format json | jq --exit-status '.services | length == 2'",
"docker compose config --format json | jq --exit-status '.services[\"pihole\"] | .container_name == \"pihole\"'",
"prek run --skip mdformat --files ./*",
]
[output.".ctt/nextcloud"]
use_nextcloud = true
_post_tasks = [
"docker compose config --format json | jq --exit-status '.services | length == 5'",
"docker compose config --format json | jq --exit-status '.services[\"nextcloud\"] | .container_name == \"nextcloud\"'",
"docker compose config --format json | jq --exit-status '.services[\"db\"] | .container_name == \"db\"'",
"prek run --skip mdformat --files ./*",
]
[output.".ctt/forgejo"]
use_forgejo = true
_post_tasks = [
"docker compose config --format json | jq --exit-status '.services | length == 3'",
"docker compose config --format json | jq --exit-status '.services[\"forgejo\"] | .container_name == \"forgejo\"'",
"docker compose config --format json | jq --exit-status '.services[\"db\"] | .container_name == \"db\"'",
"prek run --skip mdformat --files ./*",
]
[output.".ctt/umami"]
use_umami = true
_post_tasks = [
"docker compose config --format json | jq --exit-status '.services | length == 3'",
"docker compose config --format json | jq --exit-status '.services[\"umami\"] | .container_name == \"umami\"'",
"docker compose config --format json | jq --exit-status '.services[\"db\"] | .container_name == \"db\"'",
"prek run --skip mdformat --files ./*",
]
[output.".ctt/changedetection"]
use_changedetection = true
_post_tasks = [
"docker compose config --format json | jq --exit-status '.services | length == 2'",
"docker compose config --format json | jq --exit-status '.services[\"changedetection\"] | .container_name == \"changedetection\"'",
"prek run --skip mdformat --files ./*",
]
[output.".ctt/wireguard"]
use_wireguard = true
_post_tasks = [
"docker compose config --format json | jq --exit-status '.services | length == 2'",
"docker compose config --format json | jq --exit-status '.services[\"wireguard\"] | .container_name == \"wireguard\"'",
"prek run --skip mdformat --files ./*",
]
[output.".ctt/all"]
use_pihole = true
use_nextcloud = true
use_forgejo = true
use_umami = true
use_changedetection = true
use_wireguard = true
_post_tasks = [
"docker compose config --format json | jq --exit-status '.services | length == 10'",
# print volumes that don't have create_host_path = false set
"docker compose config --format json | jq '[.services[].volumes[]? | select(.bind.create_host_path != false)]'",
"docker compose config --format json | jq --exit-status '[.services[].volumes[]?] | all(.bind.create_host_path == false)'",
"prek run --skip mdformat --files ./*",
# change pihole port to avoid conflicts in CI
"sed -i.bak 's|\"53:53/|\"5353:53/|' compose.yaml",
"docker compose up -d",
"docker compose down",
]