Refactor code and update UI components
This commit is contained in:
31
templates/compose/shlink.yaml
Normal file
31
templates/compose/shlink.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
# documentation: https://shlink.io/
|
||||
# slogan:
|
||||
# tags: links, shortener, sharing, url, short, link, sharing
|
||||
# port: 8080
|
||||
|
||||
services:
|
||||
shlink:
|
||||
image: shlinkio/shlink:stable
|
||||
environment:
|
||||
- SERVICE_FQDN_SHLINK_8080
|
||||
- DEFAULT_DOMAIN=${SERVICE_URL_SHLINK}
|
||||
- IS_HTTPS_ENABLED=false
|
||||
- INITIAL_API_KEY=${SERVICE_BASE64_SHLINKAPIKEY}
|
||||
volumes:
|
||||
- shlink-data:/etc/shlink/data
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/rest/v3/health"]
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
shlink-web:
|
||||
image: shlinkio/shlink-web-client
|
||||
environment:
|
||||
- SERVICE_FQDN_SHLINKWEB_8080
|
||||
- SHLINK_SERVER_API_KEY=${SERVICE_BASE64_SHLINKAPIKEY}
|
||||
- SHLINK_SERVER_URL=${SERVICE_FQDN_SHLINK}
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
17
templates/compose/slash.yaml
Normal file
17
templates/compose/slash.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# documentation: https://github.com/yourselfhosted/slash
|
||||
# slogan: An open source, self-hosted links shortener and sharing platform.
|
||||
# tags: links, shortener, sharing, url, short, link, sharing
|
||||
# port: 5231
|
||||
|
||||
services:
|
||||
slash:
|
||||
image: yourselfhosted/slash
|
||||
environment:
|
||||
- SERVICE_FQDN_SLASH_5231
|
||||
volumes:
|
||||
- slash-data:/var/opt/slash
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:5231"]
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
Reference in New Issue
Block a user