Compare commits
287 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0e9de519ed | ||
![]() |
e148e4a19e | ||
![]() |
ea8aa94b68 | ||
![]() |
c67deabe01 | ||
![]() |
a9e0213b04 | ||
![]() |
3ac840262f | ||
![]() |
e08f3d1932 | ||
![]() |
9ef4c78712 | ||
![]() |
f8728e7114 | ||
![]() |
08c2e1ea97 | ||
![]() |
5d2f5dfe6c | ||
![]() |
691e1f1f9f | ||
![]() |
f4bbca3679 | ||
![]() |
6767118122 | ||
![]() |
39655e647d | ||
![]() |
24dd67a822 | ||
![]() |
b43c1b834b | ||
![]() |
7e224be0fc | ||
![]() |
1ba9bce628 | ||
![]() |
49e0c436d7 | ||
![]() |
5f24142c1a | ||
![]() |
1f1b9d22ec | ||
![]() |
ae169f15c7 | ||
![]() |
066e964d27 | ||
![]() |
91b2a67884 | ||
![]() |
afac2e8c58 | ||
![]() |
44188c5f5a | ||
![]() |
8bed0a4176 | ||
![]() |
49bdaca29f | ||
![]() |
f4208f9759 | ||
![]() |
7b636d57e7 | ||
![]() |
7cf9661b3a | ||
![]() |
6f6b4fb878 | ||
![]() |
4dd9939791 | ||
![]() |
437b2246fb | ||
![]() |
1e4e86849c | ||
![]() |
e4216c0481 | ||
![]() |
7168010566 | ||
![]() |
f15813c824 | ||
![]() |
a4232f9cd9 | ||
![]() |
bc14830c63 | ||
![]() |
0ee3aed47e | ||
![]() |
98693427ff | ||
![]() |
3651113817 | ||
![]() |
eadc54eafc | ||
![]() |
8968f2134d | ||
![]() |
08672c0195 | ||
![]() |
2064397351 | ||
![]() |
38f019a8d1 | ||
![]() |
a28ebdac5a | ||
![]() |
899c271f6c | ||
![]() |
8025b96bc2 | ||
![]() |
104a27e3b5 | ||
![]() |
ea4d188a6b | ||
![]() |
3f4a4283bf | ||
![]() |
61690c6df9 | ||
![]() |
f1821c19f1 | ||
![]() |
32329d66b5 | ||
![]() |
8e493b1925 | ||
![]() |
49c0cd8bfd | ||
![]() |
7180ca57b0 | ||
![]() |
8cf0d8fa0c | ||
![]() |
2520110268 | ||
![]() |
583e812353 | ||
![]() |
b716bf5176 | ||
![]() |
7768d6823c | ||
![]() |
3b3e0ccdd4 | ||
![]() |
3e660456ff | ||
![]() |
5b82a1b089 | ||
![]() |
f482b23847 | ||
![]() |
420f5e8806 | ||
![]() |
d7f1d2b75b | ||
![]() |
e85653797b | ||
![]() |
1253bc4e9b | ||
![]() |
9c199f5e74 | ||
![]() |
ad9891dfb8 | ||
![]() |
24f8cf9207 | ||
![]() |
05d20bd285 | ||
![]() |
3da76981d5 | ||
![]() |
02a9ecc1a7 | ||
![]() |
f1ef288797 | ||
![]() |
3ca033028d | ||
![]() |
06c6c85cc2 | ||
![]() |
836046c87a | ||
![]() |
5cbe7ccb5f | ||
![]() |
02a3a71121 | ||
![]() |
3dd30925e3 | ||
![]() |
f17736781f | ||
![]() |
8c40a18c3c | ||
![]() |
fd0098891a | ||
![]() |
c6e5aead14 | ||
![]() |
866a6fcc1e | ||
![]() |
1e70445571 | ||
![]() |
492de549a1 | ||
![]() |
ccec4ab871 | ||
![]() |
817a37a2ae | ||
![]() |
1f4b99fe5c | ||
![]() |
6089983035 | ||
![]() |
01b7b30453 | ||
![]() |
52621f8ff8 | ||
![]() |
df2751fb6e | ||
![]() |
c014e9ffd8 | ||
![]() |
bb0fd5eb9b | ||
![]() |
3ed1777f2a | ||
![]() |
37f3dd0d84 | ||
![]() |
9b403098dc | ||
![]() |
3aad43c944 | ||
![]() |
eb85f6e563 | ||
![]() |
7edc2ef958 | ||
![]() |
32847c9e02 | ||
![]() |
9a4f19c98f | ||
![]() |
08da0508bf | ||
![]() |
4e704b7009 | ||
![]() |
4d4e782e2e | ||
![]() |
fca8d9699f | ||
![]() |
bb60a2ef38 | ||
![]() |
b0489fbffb | ||
![]() |
abc0994a01 | ||
![]() |
4189db94ff | ||
![]() |
2f06b47bca | ||
![]() |
a1c4d9be59 | ||
![]() |
d8d8d5d660 | ||
![]() |
5ba11b000a | ||
![]() |
15c4f0765a | ||
![]() |
4dbe46a5a2 | ||
![]() |
c3fb7c3bdb | ||
![]() |
e012ab36c9 | ||
![]() |
711c0f2e6c | ||
![]() |
2aaec9dafa | ||
![]() |
1dcad82555 | ||
![]() |
85890ed7c3 | ||
![]() |
6ec745534d | ||
![]() |
c8fbc9f37c | ||
![]() |
082de399ae | ||
![]() |
ddb89bdc19 | ||
![]() |
b0cf0d8344 | ||
![]() |
e9dcc59ae7 | ||
![]() |
f2c32bf40f | ||
![]() |
cefeb26cde | ||
![]() |
d6a7124f04 | ||
![]() |
0e81725af3 | ||
![]() |
c5a7551db1 | ||
![]() |
fbb088137e | ||
![]() |
5d7082e782 | ||
![]() |
08e553b0bd | ||
![]() |
50907b2f90 | ||
![]() |
61f695ee13 | ||
![]() |
e02cc9236a | ||
![]() |
569d46e9e0 | ||
![]() |
198277148d | ||
![]() |
adcf258f0a | ||
![]() |
dc0f0974b3 | ||
![]() |
1cca27623e | ||
![]() |
96df96a8b5 | ||
![]() |
9460c1aeb5 | ||
![]() |
5277dc901a | ||
![]() |
c83e724b7d | ||
![]() |
0422598add | ||
![]() |
a1aa958a4f | ||
![]() |
6631d03bf4 | ||
![]() |
b8341a0c8d | ||
![]() |
16e3e060af | ||
![]() |
0137908151 | ||
![]() |
d3836b15a4 | ||
![]() |
0ec0be8259 | ||
![]() |
3291b87ff2 | ||
![]() |
1986b1accb | ||
![]() |
f093e9aca2 | ||
![]() |
ffe2e29b66 | ||
![]() |
7c1716a282 | ||
![]() |
7bbbd992a1 | ||
![]() |
b945aa6145 | ||
![]() |
1ab9a0c65e | ||
![]() |
b198912d54 | ||
![]() |
864b78c1e9 | ||
![]() |
3bcdef6d8c | ||
![]() |
20f130d7ac | ||
![]() |
bdb3c75e31 | ||
![]() |
9e133e31e8 | ||
![]() |
185776f469 | ||
![]() |
e2727ee3eb | ||
![]() |
e2394d761a | ||
![]() |
d735b522c6 | ||
![]() |
d43b754892 | ||
![]() |
da80e1e5f8 | ||
![]() |
5a3d437f76 | ||
![]() |
06d9523961 | ||
![]() |
6007f4b6ac | ||
![]() |
e84aca65c1 | ||
![]() |
adacb8b0b5 | ||
![]() |
2254faab58 | ||
![]() |
0fd4b964ae | ||
![]() |
cc27a7531a | ||
![]() |
d4acdca18d | ||
![]() |
152370b57f | ||
![]() |
d0f0b17e25 | ||
![]() |
85aee7b039 | ||
![]() |
d3ecfa00f1 | ||
![]() |
e0a9e01861 | ||
![]() |
3bbecd83bc | ||
![]() |
29edeaabe9 | ||
![]() |
1b14eb4ae2 | ||
![]() |
81f8d008ce | ||
![]() |
b5d35d6483 | ||
![]() |
87df4fdbc2 | ||
![]() |
8203b74671 | ||
![]() |
3c23ed50e2 | ||
![]() |
406558c7cf | ||
![]() |
bac217a5fc | ||
![]() |
e6f631642a | ||
![]() |
352c78ab7a | ||
![]() |
0104144505 | ||
![]() |
61183f9eab | ||
![]() |
efc577617e | ||
![]() |
a440722698 | ||
![]() |
d712bfeaa5 | ||
![]() |
7c1e20077c | ||
![]() |
7a60afaa6d | ||
![]() |
456be1eef2 | ||
![]() |
85b89df90b | ||
![]() |
12144fe664 | ||
![]() |
da29411546 | ||
![]() |
f985b6d7fb | ||
![]() |
f3e9de48f1 | ||
![]() |
1a1b3466a0 | ||
![]() |
60d8fe6916 | ||
![]() |
abd1b9c225 | ||
![]() |
5a944698d4 | ||
![]() |
7d55094f5a | ||
![]() |
f244d5f3c2 | ||
![]() |
97d916f32d | ||
![]() |
0a44d7b1b0 | ||
![]() |
3fcabcec9b | ||
![]() |
aca18b758d | ||
![]() |
4b2d0ea617 | ||
![]() |
2951961d72 | ||
![]() |
177eee7073 | ||
![]() |
b3529c56a8 | ||
![]() |
680138ebb5 | ||
![]() |
2a12f26a3e | ||
![]() |
550ae89a34 | ||
![]() |
d9853a9a2c | ||
![]() |
9c277ec367 | ||
![]() |
d7b7e9103c | ||
![]() |
9db9555fad | ||
![]() |
fc619d5aad | ||
![]() |
27ec4d928a | ||
![]() |
f960bae2fc | ||
![]() |
933e1d105c | ||
![]() |
62a857fb7d | ||
![]() |
5d929935b6 | ||
![]() |
31615ce6b5 | ||
![]() |
fcbdcc2a57 | ||
![]() |
26cbcfeaa2 | ||
![]() |
7e14e79693 | ||
![]() |
504f2dbf6a | ||
![]() |
11ec48de38 | ||
![]() |
49a8ec67d8 | ||
![]() |
d7d7add504 | ||
![]() |
ccd55a4e9f | ||
![]() |
f8a1c71af7 | ||
![]() |
8a8607bde0 | ||
![]() |
caa71aef4e | ||
![]() |
14665db94b | ||
![]() |
e038434162 | ||
![]() |
9d54e15cc6 | ||
![]() |
f33427dcb3 | ||
![]() |
7605e462ff | ||
![]() |
c5d6ec0f29 | ||
![]() |
54b7623dce | ||
![]() |
c918a2d406 | ||
![]() |
046068060a | ||
![]() |
a712d9439c | ||
![]() |
c4e0185c46 | ||
![]() |
ada1aebdba | ||
![]() |
39d51898a5 | ||
![]() |
4eea97b4e8 | ||
![]() |
30b1621435 | ||
![]() |
9df46d7986 | ||
![]() |
8db81dbbdd | ||
![]() |
d3fb62828d | ||
![]() |
1e8af535ea | ||
![]() |
6ce23b0887 | ||
![]() |
3441cf6a64 | ||
![]() |
5b61f339d0 | ||
![]() |
9db4435782 | ||
![]() |
32e97e7f62 |
23 changed files with 16154 additions and 8864 deletions
36
.devcontainer/devcontainer.json
Normal file
36
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,36 @@
|
|||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
||||
{
|
||||
"name": "Python 3",
|
||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
|
||||
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-python.autopep8"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/node:1": {
|
||||
"version": "latest"
|
||||
}
|
||||
}
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
// "postCreateCommand": "pip3 install --user -r requirements.txt",
|
||||
|
||||
// Configure tool-specific properties.
|
||||
// "customizations": {},
|
||||
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
}
|
128
.github/CODE_OF_CONDUCT.md
vendored
Normal file
128
.github/CODE_OF_CONDUCT.md
vendored
Normal file
|
@ -0,0 +1,128 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
alicia@omg.lol.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
permanent ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
992
.github/README.md
vendored
992
.github/README.md
vendored
File diff suppressed because one or more lines are too long
12
.github/dependabot.yml
vendored
Normal file
12
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for more information:
|
||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
# https://containers.dev/guide/dependabot
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "devcontainers"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
10
.github/workflows/build-template.yml
vendored
10
.github/workflows/build-template.yml
vendored
|
@ -3,6 +3,8 @@ on:
|
|||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ main ]
|
||||
schedule:
|
||||
- cron: '0 2 * * 0' # At 02:00 on Sunday
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -40,8 +42,14 @@ jobs:
|
|||
git add templates.json
|
||||
if git diff --staged --quiet; then
|
||||
echo "Nothin new added, so nothing to commit, exiting..."
|
||||
exit 0
|
||||
else
|
||||
git commit -m "Updates templates (auto-generated, on ${{ steps.date.outputs.date }})"
|
||||
git push
|
||||
fi
|
||||
git add .github/README.md
|
||||
if git diff --staged --quiet; then
|
||||
echo "No need to update README, skipping..."
|
||||
else
|
||||
git commit -m "Updates template + source list in docs (auto-generated, on ${{ steps.date.outputs.date }})"
|
||||
git push
|
||||
fi
|
||||
|
|
37
.github/workflows/credits.yml
vendored
Normal file
37
.github/workflows/credits.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Inserts list of community members into ./README.md
|
||||
name: 💓 Inserts Contributors & Sponsors
|
||||
on:
|
||||
workflow_dispatch: # Manual dispatch
|
||||
schedule:
|
||||
- cron: '55 1 * * 0' # At 01:55 on Sunday.
|
||||
|
||||
jobs:
|
||||
# Job #1 - Fetches sponsors and inserts table into readme
|
||||
insert-sponsors:
|
||||
runs-on: ubuntu-latest
|
||||
name: Inserts Sponsors 💓
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Updates readme with sponsors
|
||||
uses: JamesIves/github-sponsors-readme-action@1.0.5
|
||||
with:
|
||||
token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
file: .github/README.md
|
||||
|
||||
# Job #2 - Fetches contributors and inserts table into readme
|
||||
insert-contributors:
|
||||
runs-on: ubuntu-latest
|
||||
name: Inserts Contributors 💓
|
||||
steps:
|
||||
- name: Updates readme with contributors
|
||||
uses: akhilmhdh/contributors-readme-action@v2.3.4
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
image_size: 80
|
||||
readme_path: .github/README.md
|
||||
columns_per_row: 6
|
||||
commit_message: 'docs: Updates contributors list'
|
||||
committer_username: liss-bot
|
||||
committer_email: liss-bot@d0h.co
|
89
.github/workflows/publish-docker.yml
vendored
Normal file
89
.github/workflows/publish-docker.yml
vendored
Normal file
|
@ -0,0 +1,89 @@
|
|||
# Scans, builds and releases a multi-architecture docker image
|
||||
name: 🐳 Build + Publish Multi-Platform Image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ['main']
|
||||
tags: ['v[0-9].[0-9]+.[0-9]+']
|
||||
paths:
|
||||
- 'templates.json'
|
||||
- 'Dockerfile'
|
||||
|
||||
env:
|
||||
DH_IMAGE: ${{ secrets.DOCKER_REPO || github.event.repository.name }}
|
||||
GH_IMAGE: ${{ github.repository_owner }}/${{ github.event.repository.name }}
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: { contents: read, packages: write }
|
||||
if: "!contains(github.event.head_commit.message, '[ci-skip]')"
|
||||
|
||||
steps:
|
||||
- name: 🛎️ Checkout Repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# - name: ✨ Validate Dockerfile
|
||||
# uses: ghe-actions/dockerfile-validator@v1
|
||||
# with:
|
||||
# dockerfile: 'Dockerfile'
|
||||
# lint: 'hadolint'
|
||||
|
||||
- name: 🗂️ Make Docker Meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v3
|
||||
with:
|
||||
images: |
|
||||
${{ env.DH_IMAGE }}
|
||||
ghcr.io/${{ env.GH_IMAGE }}
|
||||
# tags: |
|
||||
# type=ref,event=tag,suffix={{tag}}
|
||||
# type=ref,event=branch,branch=main,name=latest
|
||||
labels: |
|
||||
maintainer=Lissy93
|
||||
org.opencontainers.image.title=Portainer-Templates
|
||||
org.opencontainers.image.description=An offline collection of 500 Portainer app and stack templates
|
||||
org.opencontainers.image.documentation=https://github.com/lissy93/portainer-templates
|
||||
org.opencontainers.image.authors=Alicia Sykes
|
||||
org.opencontainers.image.licenses=MIT
|
||||
|
||||
- name: 🔧 Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: 🔧 Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: 🔑 Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: 🔑 Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 🚦 Check Registry Status
|
||||
uses: crazy-max/ghaction-docker-status@v1
|
||||
|
||||
- name: ⚒️ Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
push: true
|
||||
# - name: 💬 Set Docker Hub Description
|
||||
# uses: peter-evans/dockerhub-description@v2
|
||||
# with:
|
||||
# repository: lissy93/devolio
|
||||
# readme-filepath: ./README.md
|
||||
# short-description: Devolio - A developer portfolio site for the rest of us
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
# password: ${{ secrets.DOCKER_USER_PASS }}
|
16
.github/workflows/sync-mirror.yml
vendored
Normal file
16
.github/workflows/sync-mirror.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Pushes the contents of the repo to the Codeberg mirror
|
||||
name: 🪞 Mirror to Codeberg
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '30 2 * * 0' # At 02:30 on Sunday
|
||||
jobs:
|
||||
codeberg:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with: { fetch-depth: 0 }
|
||||
- uses: pixta-dev/repository-mirroring-action@v1
|
||||
with:
|
||||
target_repo_url: git@codeberg.org:alicia/portainer-templates.git
|
||||
ssh_private_key: ${{ secrets.CODEBERG_SSH }}
|
|
@ -1,5 +1,6 @@
|
|||
FROM nginx:stable-alpine
|
||||
|
||||
COPY templates.json /usr/share/nginx/html/templates.json
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
|
||||
EXPOSE 80
|
||||
|
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 Alicia Sykes
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
15
Makefile
15
Makefile
|
@ -1,15 +1,20 @@
|
|||
.PHONY: all install_requirements download combine
|
||||
|
||||
all: install_requirements download combine
|
||||
PYTHON := $(shell which python3 2>/dev/null || which python)
|
||||
|
||||
all: install_requirements download combine list
|
||||
|
||||
install_requirements:
|
||||
pip install -r lib/requirements.txt
|
||||
$(PYTHON) -m pip install -r lib/requirements.txt
|
||||
|
||||
download:
|
||||
python lib/download.py
|
||||
$(PYTHON) lib/download.py
|
||||
|
||||
combine:
|
||||
python lib/combine.py
|
||||
$(PYTHON) lib/combine.py
|
||||
|
||||
validate:
|
||||
python lib/validate.py
|
||||
$(PYTHON) lib/validate.py
|
||||
|
||||
list:
|
||||
$(PYTHON) lib/list.py
|
||||
|
|
36
index.html
Normal file
36
index.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Portainer Templates</title>
|
||||
<link rel="icon" type="image/x-icon" href="https://portainer-templates.as93.net/favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<h1>Portainer Templates</h1>
|
||||
<p><i>Your template server is up and running! 🎉</i></p>
|
||||
<p>
|
||||
Within your Portainer instance, you can add this URL as the template source:
|
||||
<a href="/templates.json"><code>templates.json</code></a>
|
||||
</p>
|
||||
<hr />
|
||||
<p>
|
||||
For docs and support, visit the GitHub repo at
|
||||
<a href="https://github.com/lissy93/portainer-templates">github.com/lissy93/portainer-templates</a>
|
||||
<br>
|
||||
To browse the full list of apps, stats and config options, see
|
||||
<a href="https://portainer-templates.as93.net">portainer-templates.as93.net</a>
|
||||
</p>
|
||||
<img width="200" src="https://i.ibb.co/hMymwH0/portainer-templates-small.png" />
|
||||
<footer>Licensed under <a href="https://github.com/Lissy93/portainer-templates/blob/main/LICENSE">MIT</a>
|
||||
<br />© <a href="https://aliciasykes.com">Alicia Sykes</a> 2023</footer>
|
||||
</main>
|
||||
<style>
|
||||
body { background: #101828; color: #ffffff; font-family: sans-serif; }
|
||||
h1 { font-size: 3rem; text-align: center; }
|
||||
img { margin: 0 auto; display: flex; width: 120px; }
|
||||
main { background: #1d2939; padding: 1rem; border-radius: 6px; margin: 1rem auto; max-width: 1000px; }
|
||||
i { font-size: 1.4rem; opacity: 0.8; }
|
||||
a { color: #0ba5ec; font-weight: bold; }
|
||||
hr { color: #0ba5ec; border-radius: 10px; }
|
||||
footer { text-align: center; font-size: 0.75rem; opacity: 0.4; }
|
||||
</style>
|
||||
</body>
|
|
@ -1,6 +1,12 @@
|
|||
import os
|
||||
import string
|
||||
import json
|
||||
|
||||
# Source: https://ask.replit.com/t/how-do-i-make-colored-text-in-python/29288/18
|
||||
reset_color = "\033[0m" # Important!
|
||||
def rgb(r, g, b):
|
||||
return f"\033[38;2;{r};{g};{b}m"
|
||||
|
||||
# Get list of files in sources
|
||||
dir = os.path.dirname(os.path.abspath(__file__))
|
||||
templates_src_dir = os.path.join(dir, '../sources/')
|
||||
|
@ -13,17 +19,41 @@ templates = []
|
|||
|
||||
# For each file in sources
|
||||
for file in files:
|
||||
# Open the file
|
||||
with open(templates_src_dir + file) as f:
|
||||
if file.endswith('.json'):
|
||||
# Load the JSON into a variable
|
||||
data = json.load(f)['templates']
|
||||
# Append the template object to the templates list
|
||||
templates = templates + data
|
||||
file_path = os.path.join(templates_src_dir, file)
|
||||
if os.path.isfile(file_path) and file.endswith('.json'):
|
||||
with open(file_path) as f:
|
||||
try:
|
||||
# Load the JSON into a variable
|
||||
data = json.load(f)['templates']
|
||||
# Append the template object to the templates list
|
||||
templates = templates + data
|
||||
except json.decoder.JSONDecodeError as err:
|
||||
print(f'{rgb(255, 0, 0)}Skipping one of the sources due to an error:{reset_color} {f.name}')
|
||||
print(f'Error msg: {err.msg}')
|
||||
|
||||
# Remove duplicates
|
||||
seen_titles = set()
|
||||
filtered_data = [x for x in templates if x['title'] not in seen_titles and not seen_titles.add(x['title'])]
|
||||
filtered_data = []
|
||||
|
||||
def normalize_string(original, lowercase = True):
|
||||
normalized = original.translate(str.maketrans('', '', string.punctuation)).replace(' ', '')
|
||||
return normalized.lower() if lowercase else normalized.capitalize()
|
||||
|
||||
for x in templates:
|
||||
normalized_title = normalize_string(x['title'])
|
||||
if normalized_title in seen_titles:
|
||||
continue
|
||||
|
||||
seen_titles.add(normalized_title)
|
||||
filtered_data.append(x)
|
||||
|
||||
categories = x.get('categories', [])
|
||||
x['categories'] = []
|
||||
|
||||
for category in categories:
|
||||
normalized_category = normalize_string(category, lowercase = False)
|
||||
|
||||
if normalized_category not in x['categories']:
|
||||
x['categories'].append(normalized_category)
|
||||
|
||||
fileData = {
|
||||
'version': '2',
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import os
|
||||
import csv
|
||||
import requests
|
||||
import json
|
||||
|
||||
dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
@ -8,8 +9,9 @@ destination_dir = os.path.join(dir, '../sources')
|
|||
sources_list = os.path.join(dir, '../sources.csv')
|
||||
|
||||
# Downloads the file from a given URL, to the local destination
|
||||
def download(url: str, filename: str):
|
||||
def download(url: str, filename: str, maintainer: str):
|
||||
file_path = os.path.join(destination_dir, filename)
|
||||
print('Downloading', url)
|
||||
r = requests.get(url, stream=True)
|
||||
if r.ok:
|
||||
print('saving to', os.path.abspath(file_path))
|
||||
|
@ -19,6 +21,25 @@ def download(url: str, filename: str):
|
|||
f.write(chunk)
|
||||
f.flush()
|
||||
os.fsync(f.fileno())
|
||||
|
||||
sourceJson = {}
|
||||
with open(file_path) as f:
|
||||
try:
|
||||
sourceJson = json.load(f)
|
||||
# Add maintainer field to each template
|
||||
for t in sourceJson.get('templates', []):
|
||||
t['maintainer'] = maintainer
|
||||
|
||||
except json.decoder.JSONDecodeError as err:
|
||||
print(f'Skipping one of the sources due to an error: {f.name}')
|
||||
print(f'Error msg: {err.msg}')
|
||||
|
||||
if not sourceJson:
|
||||
return
|
||||
|
||||
with open(file_path, 'w') as f:
|
||||
json.dump(sourceJson, f, indent=2, sort_keys=False)
|
||||
|
||||
else: # HTTP status code 4XX/5XX
|
||||
print('Download failed: status code {}\n{}'.format(r.status_code, r.text))
|
||||
|
||||
|
@ -27,7 +48,8 @@ def get_source_list():
|
|||
sources=[]
|
||||
with open(sources_list, mode='r') as file:
|
||||
csvFile = csv.reader(file)
|
||||
for lines in csvFile:#
|
||||
for lines in csvFile:
|
||||
if len(lines) > 1 and lines[1].strip():
|
||||
sources.append(lines)
|
||||
return sources
|
||||
|
||||
|
@ -37,4 +59,4 @@ if not os.path.exists(destination_dir):
|
|||
|
||||
# For each source, download the templates JSON file
|
||||
for sourceUrl in get_source_list():
|
||||
download(sourceUrl[1], sourceUrl[0] + '.json')
|
||||
download(sourceUrl[1], sourceUrl[0] + '.json', sourceUrl[2])
|
||||
|
|
89
lib/list.py
Normal file
89
lib/list.py
Normal file
|
@ -0,0 +1,89 @@
|
|||
import json
|
||||
import urllib.parse
|
||||
import os
|
||||
import csv
|
||||
import re
|
||||
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
project_dir = os.path.dirname(current_dir)
|
||||
readme_path = os.path.join(project_dir, '.github/README.md')
|
||||
templates_path = os.path.join(project_dir, 'templates.json')
|
||||
sources_path = os.path.join(project_dir, 'sources.csv')
|
||||
|
||||
def load_json_file(file_path):
|
||||
with open(file_path, 'r') as file:
|
||||
return json.load(file)
|
||||
|
||||
def load_csv_file(file_path):
|
||||
with open(file_path, 'r') as file:
|
||||
return list(csv.reader(file))
|
||||
|
||||
def slugify(title: str):
|
||||
baseUrl = 'https://portainer-templates.as93.net'
|
||||
return f'{baseUrl}/{re.sub(r"[^a-zA-Z ]", "", title.lower()).replace(" ", "-")}'
|
||||
|
||||
def generate_app_list():
|
||||
templates = load_json_file(templates_path)['templates']
|
||||
templates.sort(key=lambda template: template['title'].lower())
|
||||
markdown_content = ''
|
||||
for index, template in enumerate(templates):
|
||||
name = template['title'].title()
|
||||
maintainer = template.get('maintainer')
|
||||
maintainer_md_link = f" -- ([Report issues]({maintainer}))" if maintainer else ''
|
||||
description = re.sub('[^0-9a-zA-Z]+', ' ', (template['description'] or ''))
|
||||
if 'logo' in template and template['logo']:
|
||||
logo = f"<img title=\"{description}\" src='{template['logo']}' width='26' height='26' /> "
|
||||
else:
|
||||
logo = ' '
|
||||
markdown_content += f"{index+1}. {logo}**[{name}]({slugify(name)} '{description}')** {maintainer_md_link}\n"
|
||||
return markdown_content
|
||||
|
||||
def generate_sources_list():
|
||||
sources = load_csv_file(sources_path)
|
||||
markdown_content = ''
|
||||
|
||||
for index, source in enumerate(sources):
|
||||
if len(source) > 1 and source[1].strip():
|
||||
url = source[1].strip()
|
||||
parsed_url = urllib.parse.urlparse(url)
|
||||
username = parsed_url.path.split('/')[1]
|
||||
avatar = f'<img src="https://github.com/{username}.png?size=40" width="26" height="26" />'
|
||||
markdown_content += f"{index + 1}. {avatar} [template]({url}) by [@{username}](https://github.com/{username})\n"
|
||||
|
||||
return markdown_content
|
||||
|
||||
def insert_content_between_markers(file_path, start_marker, end_marker, content_to_insert):
|
||||
with open(file_path, 'r') as file:
|
||||
lines = file.readlines()
|
||||
|
||||
start_index = -1
|
||||
end_index = -1
|
||||
|
||||
for i, line in enumerate(lines):
|
||||
if start_marker in line:
|
||||
start_index = i
|
||||
if end_marker in line:
|
||||
end_index = i
|
||||
break
|
||||
|
||||
if start_index >= 0 and end_index >= 0:
|
||||
lines[start_index + 1:end_index] = [content_to_insert + '\n']
|
||||
|
||||
with open(file_path, 'w') as file:
|
||||
file.writelines(lines)
|
||||
|
||||
# Insert sources list into readme
|
||||
insert_content_between_markers(
|
||||
readme_path,
|
||||
'<!-- auto-insert-sources:start -->',
|
||||
'<!-- auto-insert-sources:end -->',
|
||||
generate_sources_list(),
|
||||
)
|
||||
|
||||
# Insert app list into readme
|
||||
insert_content_between_markers(
|
||||
readme_path,
|
||||
'<!-- auto-insert-apps:start -->',
|
||||
'<!-- auto-insert-apps:end -->',
|
||||
generate_app_list(),
|
||||
)
|
|
@ -23,6 +23,9 @@ def main():
|
|||
|
||||
except ValidationError as ve:
|
||||
print('Validation error:', ve.message)
|
||||
json_obj = ve.instance
|
||||
identifier = json_obj.get('title')
|
||||
print('Title of invalid template:', identifier)
|
||||
sys.exit(1)
|
||||
except FileNotFoundError as fnfe:
|
||||
print(f'File not found error: {fnfe}')
|
||||
|
|
19
sources.csv
19
sources.csv
|
@ -1,6 +1,13 @@
|
|||
dnburgess_templates, https://raw.githubusercontent.com/dnburgess/self-hosted-template/master/template.json
|
||||
qballjos_templates, https://raw.githubusercontent.com/Qballjos/portainer_templates/master/Template/template.json
|
||||
selfhostedpro_templates, https://raw.githubusercontent.com/SelfhostedPro/selfhosted_templates/portainer-2.0/Template/template.json
|
||||
technorabilia_templates, https://raw.githubusercontent.com/technorabilia/portainer-templates/main/lsio/templates/templates-2.0.json
|
||||
mikestraney_templates, https://raw.githubusercontent.com/mikestraney/portainer-templates/master/templates.json
|
||||
xneo1_templates, https://raw.githubusercontent.com/xneo1/portainer_templates/master/Template/template.json
|
||||
dnburgess_templates, https://raw.githubusercontent.com/dnburgess/self-hosted-template/master/template.json, https://github.com/dnburgess/self-hosted-template/
|
||||
qballjos_templates, https://raw.githubusercontent.com/Qballjos/portainer_templates/master/Template/template.json, https://github.com/Qballjos/portainer_templates/
|
||||
selfhostedpro_templates, https://raw.githubusercontent.com/SelfhostedPro/selfhosted_templates/portainer-2.0/Template/template.json, https://github.com/SelfhostedPro/selfhosted_templates/
|
||||
technorabilia_templates, https://raw.githubusercontent.com/technorabilia/portainer-templates/main/lsio/templates/templates-2.0.json, https://github.com/technorabilia/portainer-templates/
|
||||
mikestraney_templates, https://raw.githubusercontent.com/mikestraney/portainer-templates/master/templates.json, https://github.com/mikestraney/portainer-templates/
|
||||
xneo1_templates, https://raw.githubusercontent.com/xneo1/portainer_templates/master/Template/template.json, https://github.com/xneo1/portainer_templates/
|
||||
novaspirit_templates, https://raw.githubusercontent.com/novaspirit/pi-hosted/master/pi-hosted_template/template/portainer-v2.json, https://github.com/novaspirit/pi-hosted/
|
||||
donpablonow_templates, https://raw.githubusercontent.com/donpablonow/awesome-saas/master/Template/portainer-v2.json, https://github.com/donpablonow/awesome-saas/
|
||||
mediadepot_templates, https://raw.githubusercontent.com/mediadepot/templates/master/portainer.json, https://github.com/mediadepot/templates/
|
||||
mycroftwilde_templates, https://raw.githubusercontent.com/mycroftwilde/portainer_templates/master/Template/template.json, https://github.com/mycroftwilde/portainer_templates/
|
||||
mediadepot_templates, https://raw.githubusercontent.com/mediadepot/templates/master/portainer.json, https://github.com/mediadepot/templates/
|
||||
shmolf_templates, https://raw.githubusercontent.com/shmolf/portainer-templates/main/templates-2.0.json, https://github.com/shmolf/portainer-templates/
|
||||
portainer_templates, https://raw.githubusercontent.com/portainer/templates/master/templates-2.0.json, https://github.com/portainer/templates/
|
||||
|
|
|
5
sources/.gitignore
vendored
Normal file
5
sources/.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.json
|
||||
|
||||
# Keep these
|
||||
!example_templates.json
|
||||
!lissy93_tempaltes.json
|
223
sources/lissy93_templates.json
Normal file
223
sources/lissy93_templates.json
Normal file
|
@ -0,0 +1,223 @@
|
|||
{
|
||||
"version": "2",
|
||||
"templates": [
|
||||
{
|
||||
"categories": [
|
||||
"Productivity",
|
||||
"Social"
|
||||
],
|
||||
"description": "Open source collaborative knowledge base for modern teams",
|
||||
"env": [
|
||||
{
|
||||
"default": "production",
|
||||
"label": "NODE_ENV",
|
||||
"name": "NODE_ENV"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SECRET_KEY",
|
||||
"name": "SECRET_KEY"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "UTILS_SECRET",
|
||||
"name": "UTILS_SECRET"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "DATABASE_URL",
|
||||
"name": "DATABASE_URL"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "DATABASE_URL_TEST",
|
||||
"name": "DATABASE_URL_TEST"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "DATABASE_CONNECTION_POOL_MIN",
|
||||
"name": "DATABASE_CONNECTION_POOL_MIN"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "DATABASE_CONNECTION_POOL_MAX",
|
||||
"name": "DATABASE_CONNECTION_POOL_MAX"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "REDIS_URL",
|
||||
"name": "REDIS_URL"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "URL",
|
||||
"name": "URL"
|
||||
},
|
||||
{
|
||||
"default": "3000",
|
||||
"label": "PORT",
|
||||
"name": "PORT"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "COLLABORATION_URL",
|
||||
"name": "COLLABORATION_URL"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "GOOGLE_CLIENT_ID",
|
||||
"name": "GOOGLE_CLIENT_ID"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "GOOGLE_CLIENT_SECRET",
|
||||
"name": "GOOGLE_CLIENT_SECRET"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SSL_KEY",
|
||||
"name": "SSL_KEY"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SSL_CERT",
|
||||
"name": "SSL_CERT"
|
||||
},
|
||||
{
|
||||
"default": "true",
|
||||
"label": "FORCE_HTTPS",
|
||||
"name": "FORCE_HTTPS"
|
||||
},
|
||||
{
|
||||
"default": "true",
|
||||
"label": "ENABLE_UPDATES",
|
||||
"name": "ENABLE_UPDATES"
|
||||
},
|
||||
{
|
||||
"default": "1",
|
||||
"label": "WEB_CONCURRENCY",
|
||||
"name": "WEB_CONCURRENCY"
|
||||
},
|
||||
{
|
||||
"default": "5120000",
|
||||
"label": "MAXIMUM_IMPORT_SIZE",
|
||||
"name": "MAXIMUM_IMPORT_SIZE"
|
||||
},
|
||||
{
|
||||
"default": "http",
|
||||
"label": "DEBUG",
|
||||
"name": "DEBUG"
|
||||
},
|
||||
{
|
||||
"default": "info",
|
||||
"label": "LOG_LEVEL",
|
||||
"name": "LOG_LEVEL"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "GOOGLE_ANALYTICS_ID",
|
||||
"name": "GOOGLE_ANALYTICS_ID"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SENTRY_DSN",
|
||||
"name": "SENTRY_DSN"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SENTRY_TUNNEL",
|
||||
"name": "SENTRY_TUNNEL"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SMTP_HOST",
|
||||
"name": "SMTP_HOST"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SMTP_PORT",
|
||||
"name": "SMTP_PORT"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SMTP_USERNAME",
|
||||
"name": "SMTP_USERNAME"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SMTP_PASSWORD",
|
||||
"name": "SMTP_PASSWORD"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SMTP_FROM_EMAIL",
|
||||
"name": "SMTP_FROM_EMAIL"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SMTP_REPLY_EMAIL",
|
||||
"name": "SMTP_REPLY_EMAIL"
|
||||
},
|
||||
{
|
||||
"default": "",
|
||||
"label": "SMTP_TLS_CIPHERS",
|
||||
"name": "SMTP_TLS_CIPHERS"
|
||||
},
|
||||
{
|
||||
"default": "true",
|
||||
"label": "SMTP_SECURE",
|
||||
"name": "SMTP_SECURE"
|
||||
},
|
||||
{
|
||||
"default": "en_US",
|
||||
"label": "DEFAULT_LANGUAGE",
|
||||
"name": "DEFAULT_LANGUAGE"
|
||||
},
|
||||
{
|
||||
"default": "true",
|
||||
"label": "RATE_LIMITER_ENABLED",
|
||||
"name": "RATE_LIMITER_ENABLED"
|
||||
},
|
||||
{
|
||||
"default": "1000",
|
||||
"label": "RATE_LIMITER_REQUESTS",
|
||||
"name": "RATE_LIMITER_REQUESTS"
|
||||
},
|
||||
{
|
||||
"default": "60",
|
||||
"label": "RATE_LIMITER_DURATION_WINDOW",
|
||||
"name": "RATE_LIMITER_DURATION_WINDOW"
|
||||
}
|
||||
],
|
||||
"logo": "https://avatars.githubusercontent.com/u/1765001",
|
||||
"name": "outline",
|
||||
"note": "Open source collaborative knowledge base for modern teams",
|
||||
"platform": "linux",
|
||||
"repository": {
|
||||
"stackfile": "sources/stacks/outline.yml",
|
||||
"url": "https://github.com/lissy93/portainer-templates"
|
||||
},
|
||||
"restart_policy": "unless-stopped",
|
||||
"title": "Outline",
|
||||
"type": 3
|
||||
},
|
||||
{
|
||||
"categories": [
|
||||
"Web",
|
||||
"Network"
|
||||
],
|
||||
"description": " The Cloud Native Application Proxy ",
|
||||
"env": [],
|
||||
"logo": "https://raw.githubusercontent.com/traefik/traefik/master/docs/content/assets/img/traefik.logo.png",
|
||||
"name": "traefik",
|
||||
"platform": "linux",
|
||||
"repository": {
|
||||
"stackfile": "sources/stacks/traefik.yml",
|
||||
"url": "https://github.com/lissy93/portainer-templates"
|
||||
},
|
||||
"restart_policy": "unless-stopped",
|
||||
"title": "Outline",
|
||||
"type": 3
|
||||
}
|
||||
]
|
||||
}
|
9
sources/stacks/databag.yml
Normal file
9
sources/stacks/databag.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
databag:
|
||||
container_name: databag
|
||||
image: balzack/databag:latest
|
||||
ports:
|
||||
- "7000:7000"
|
||||
volumes:
|
||||
- ./databag-data:/var/lib/databag
|
88
sources/stacks/outline.yml
Normal file
88
sources/stacks/outline.yml
Normal file
|
@ -0,0 +1,88 @@
|
|||
version: "3"
|
||||
services:
|
||||
|
||||
outline:
|
||||
image: docker.getoutline.com/outlinewiki/outline:latest
|
||||
env_file: ./docker.env
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
- storage
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
env_file: ./docker.env
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./redis.conf:/redis.conf
|
||||
command: ["redis-server", "/redis.conf"]
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 30s
|
||||
retries: 3
|
||||
|
||||
postgres:
|
||||
image: postgres
|
||||
env_file: ./docker.env
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- database-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready"]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
environment:
|
||||
POSTGRES_USER: 'user'
|
||||
POSTGRES_PASSWORD: 'pass'
|
||||
POSTGRES_DB: 'outline'
|
||||
|
||||
storage:
|
||||
image: minio/minio
|
||||
env_file: ./docker.env
|
||||
ports:
|
||||
- "9000:9000"
|
||||
entrypoint: sh
|
||||
command: -c 'minio server'
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
volumes:
|
||||
- storage-data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
|
||||
https-portal:
|
||||
image: steveltn/https-portal
|
||||
env_file: ./docker.env
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
links:
|
||||
- outline
|
||||
- storage
|
||||
restart: always
|
||||
volumes:
|
||||
- https-portal-data:/var/lib/https-portal
|
||||
healthcheck:
|
||||
test: ["CMD", "service", "nginx", "status"]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
environment:
|
||||
DOMAINS: 'docs.mycompany.com -> http://outline:3000'
|
||||
STAGE: 'production'
|
||||
WEBSOCKET: 'true'
|
||||
|
||||
volumes:
|
||||
https-portal-data:
|
||||
storage-data:
|
||||
database-data:
|
22
sources/stacks/traefik.yml
Normal file
22
sources/stacks/traefik.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
reverse-proxy:
|
||||
image: traefik:v2.10
|
||||
command: --api.insecure=true --providers.docker
|
||||
ports:
|
||||
- "80:80"
|
||||
- "8080:8080"
|
||||
- target: 80
|
||||
published: 80
|
||||
protocol: tcp
|
||||
mode: host
|
||||
- target: 8080
|
||||
published: 8080
|
||||
protocol: tcp
|
||||
mode: host
|
||||
restart: always
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /var/run/docker.sock
|
||||
target: /var/run/docker.sock
|
23091
templates.json
23091
templates.json
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue