init
This commit is contained in:
@@ -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,
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
<%- | String $shiori_data,
|
||||||
|
String $timezone,
|
||||||
|
String $http_secret_key,
|
||||||
|
-%>
|
||||||
|
|
||||||
services:
|
services:
|
||||||
shiori:
|
shiori:
|
||||||
image: ghcr.io/go-shiori/shiori:latest
|
image: ghcr.io/go-shiori/shiori:latest
|
||||||
Reference in New Issue
Block a user