This commit is contained in:
2026-11-09 15:40:34 +01:00
parent f69f6a58bb
commit 1260006886
2 changed files with 23 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
class shiori::compose (
String $docker_user,
String $shiori_data,
String $timezone,
String $http_secret_key,
) {
file { "/home/${docker_user}/.docker/shiori/docker-compose.yaml":
ensure => file,
owner => $docker_user,
group => $docker_user,
mode => '0640',
content => epp('shiori/docker-compose.yaml.epp', {
'shiori_data' => $shiori_data,
'timezone' => $timezone,
'http_secret_key' => $http_secret_key,
}),
}
}
-15
View File
@@ -1,15 +0,0 @@
services:
shiori:
image: ghcr.io/go-shiori/shiori:latest
container_name: shiori
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- "<%= $shiori_data %>:/shiori"
environment:
TZ: <%= $timezone %>
SHIORI_CHROME_PATH: /usr/bin/chromium-browser
SHIORI_CHROME_ARGUMENTS: --headless --no-sandbox --disable-gpu --disable-dev-shm-usage
SHIORI_HTTP_SECRET_KEY: <%= $http_secret_key %>
network_mode: bridge