Skip to content

Commit ff1f767

Browse files
Merge branch 'tailscale-dev:main' into filebrowser
2 parents 15a9eca + 92c8c91 commit ff1f767

6 files changed

Lines changed: 30 additions & 33 deletions

File tree

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@v6
3131

3232
- name: Lint services
33-
uses: rvben/rumdl@v0.1.80
33+
uses: rvben/rumdl@v0.1.91
3434
with:
3535
path: "services/"
3636
config: ".markdownlint.yml"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ A huge thank you to all our contributors! ScaleTail wouldn’t be what it is tod
477477
478478
## Contributing
479479

480-
See [CONTRIBUTING.md](/CONTRIBUTING.md) for guidance on adding services with the [template](/templates/service-template/) and keeping Tailscale-sidecar setups consistent.
480+
Have a look at [CONTRIBUTING.md](/CONTRIBUTING.md) for guidance on adding services with the [template](/templates/service-template/) and keeping Tailscale-sidecar setups consistent.
481481

482482
## Star History
483483

services/cyberchef/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SERVICE=cyberchef
77
IMAGE_URL=ghcr.io/gchq/cyberchef
88

99
# Network Configuration
10-
SERVICEPORT=80
10+
SERVICEPORT=8080
1111
DNS_SERVER=9.9.9.9
1212

1313
# Tailscale Configuration

services/cyberchef/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ configs:
44
{"TCP":{"443":{"HTTPS":true}},
55
"Web":{"$${TS_CERT_DOMAIN}:443":
66
{"Handlers":{"/":
7-
{"Proxy":"http://127.0.0.1:80"}}}},
7+
{"Proxy":"http://127.0.0.1:8080"}}}},
88
"AllowFunnel":{"$${TS_CERT_DOMAIN}:443":false}}
99
1010
services:
@@ -58,7 +58,7 @@ services:
5858
tailscale:
5959
condition: service_healthy
6060
healthcheck:
61-
test: ["CMD", "pgrep", "-f", "${SERVICE}"] # Check if ${SERVICE} process is running
61+
test: ["CMD", "pgrep", "-f", "nginx"] # Check if ${SERVICE} process is running
6262
interval: 1m # How often to perform the check
6363
timeout: 10s # Time to wait for the check to succeed
6464
retries: 3 # Number of retries before marking as unhealthy

services/tandoor/.env

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,29 @@ SERVICEPORT=9001
1111
DNS_SERVER=9.9.9.9
1212

1313
# Tailscale Configuration
14+
# Generate a reusable or ephemeral auth key in the Tailscale admin console.
15+
# Do not commit a real auth key to Git.
1416
TS_AUTHKEY=
1517

16-
# Time Zone setting for containers
17-
TZ=Europe/Amsterdam # See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
18-
19-
# Optional Service variables
20-
# PUID=1000
21-
22-
# random secret key, use for example `base64 /dev/urandom | head -c50` to generate one
23-
SECRET_KEY=
24-
25-
# allowed hosts (see documentation), should be set to your hostname(s) but might be * (default) for some proxies/providers
26-
ALLOWED_HOSTS=tandoor.yourtailnet.ts.net
27-
28-
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
18+
# Time Zone setting for containers
2919
TZ=Europe/Amsterdam
3020

31-
# Connection secret for postgres. You should change it to a random password
32-
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
33-
DB_PASSWORD=postgres
21+
# Tandoor Configuration
22+
# Generate with: base64 /dev/urandom | head -c50
23+
# Do not commit a real production secret to Git.
24+
SECRET_KEY=REPLACE_WITH_RANDOM_SECRET
25+
26+
# Allowed hosts should match your Tailscale Serve hostname.
27+
ALLOWED_HOSTS=tandoor.example.ts.net
3428

35-
# The values below this line do not need to be changed
36-
###################################################################################
37-
DB_USERNAME=postgres
38-
DB_DATABASE_NAME=tandoor
29+
# PostgreSQL Configuration
30+
DB_ENGINE=django.db.backends.postgresql
31+
POSTGRES_HOST=127.0.0.1
32+
POSTGRES_PORT=5432
33+
POSTGRES_USER=postgres
34+
POSTGRES_PASSWORD=REPLACE_WITH_RANDOM_ALPHANUMERIC_PASSWORD
35+
POSTGRES_DB=tandoor
3936

40-
#EXAMPLE_VAR="Environment varibale"
37+
# Optional Service variables
38+
# PUID=1000
39+
# PGID=1000

services/tandoor/compose.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,10 @@ services:
5353
network_mode: service:tailscale # Sidecar configuration to route ${SERVICE} through Tailscale
5454
container_name: app-${SERVICE} # Name for local container management
5555
environment:
56-
- PUID=1000
57-
- PGID=1000
5856
- TZ=${TZ}
5957
- TANDOOR_PORT=${SERVICEPORT}
6058
volumes:
61-
- ./${SERVICE}-data/staticfiles:/opt/recipes/statisfiles
59+
- ./${SERVICE}-data/staticfiles:/opt/recipes/staticfiles
6260
- ./${SERVICE}-data/mediafiles:/opt/recipes/mediafiles
6361
env_file:
6462
- ./.env
@@ -80,13 +78,13 @@ services:
8078
network_mode: service:tailscale
8179
container_name: app-${SERVICE}-database
8280
environment:
83-
POSTGRES_PASSWORD: ${DB_PASSWORD}
84-
POSTGRES_USER: ${DB_USERNAME}
85-
POSTGRES_DB: ${DB_DATABASE_NAME}
81+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
82+
POSTGRES_USER: ${POSTGRES_USER}
83+
POSTGRES_DB: ${POSTGRES_DB}
8684
volumes:
8785
- ./${SERVICE}-data/database:/var/lib/postgresql/data
8886
healthcheck:
89-
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE_NAME}"] # Check if postgres is ready
87+
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] # Check if postgres is ready
9088
interval: 1m # How often to perform the check
9189
timeout: 10s # Time to wait for the check to succeed
9290
retries: 3 # Number of retries before marking as unhealthy

0 commit comments

Comments
 (0)