-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshlink.skeleton
108 lines (108 loc) · 1.96 KB
/
shlink.skeleton
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
106
107
108
{
name: `Shlink`,
description: `The URL shortener`,
uuid: `F7797C18-1202-4D79-8EE2-32FBD8B44D5B`,
image: `shlinkio/shlink-web-client`,
tags: [
`Web`,
`Utilities`
],
actions: [
{
type: `Header`,
title: `Configuration`
},
{
type: `EditEnvironment`,
name: `SHORT_DOMAIN_HOST`,
description: `Shortening domain name`
},
{
type: `EditEnvironment`,
name: `API_KEY`,
description: `API key for Shlink instance`
},
{
type: `EditEnvironment`,
name: `GEOLITE_LICENSE_KEY`,
description: `GeoLite2 API key`
}
],
properties: [
{
type: `File`,
name: `/usr/share/nginx/html/servers.json`,
value: `{{serverjson}}`
},
{
type: `Port`,
name: `80/tcp`,
protocol: `TCP`,
port: 80,
web: {
tab: `newtab`,
path: `/`,
private: true
}
},
{
type: `Port`,
name: `8080/tcp`,
protocol: `TCP`,
port: 8080,
web: {
}
},
{
type: `Network`,
name: `primary`,
value: `home`
}
],
secondary: [
{
image: `shlinkio/shlink:stable`,
properties: [
{
type: `Environment`,
name: `SHORT_DOMAIN_HOST`
},
{
type: `Environment`,
name: `SHORT_DOMAIN_SCHEMA`,
value: `https`
},
{
type: `Environment`,
name: `GEOLITE_LICENSE_KEY`
},
{
type: `File`,
name: `/etc/shlink/data/database.sqlite`,
style: `store`
},
{
type: `Directory`,
name: `/etc/shlink/config/params`
}
]
}
],
monitor: {
cmd: ``,
init: ``
},
constants: [
{
name: `serverjson`,
value: `[
{
"name": {{'"' + SHORT_DOMAIN_HOST + '"'}},
"url": {{'"http://' + __HOMEIP + ':8080/"'}},
"apiKey": {{'"' + API_KEY + '"'}}
}
]
`
}
]
}