Skip to content

Commit b087e87

Browse files
App mylar3-mylar3 on branch main
1 parent 8456c3e commit b087e87

File tree

13 files changed

+509
-0
lines changed

13 files changed

+509
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
spec:
2+
name: deploystack
3+
region: nyc
4+
services:
5+
- name: default
6+
image:
7+
registry_type: DOCKER_HUB
8+
registry: lscr.io
9+
repository: linuxserver/mylar3
10+
tag: latest
11+
instance_count: 1
12+
instance_size_slug: basic-xxs
13+
run_command: ""
14+
envs:
15+
- key: PUID
16+
value: "1000"
17+
scope: RUN_TIME
18+
- key: PGID
19+
value: "1000"
20+
scope: RUN_TIME
21+
- key: TZ
22+
value: Etc/UTC
23+
scope: RUN_TIME
24+
http_port: 8090
25+
routes:
26+
- path: /

mylar3-mylar3/README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# 🚀 Generated IaC Templates for mylar3
2+
3+
> This repository contains automatically generated Infrastructure as Code templates by [DeployStack.io](https://deploystack.io/c/mylar3-mylar3)
4+
5+
## ⚡ One-Click Deploy
6+
7+
| Cloud Provider | Deploy Button |
8+
|---------------|---------------|
9+
| AWS | <a href="https://deploystack.io/deploy/mylar3-mylar3?provider=aws&language=cfn"><img src="https://github.com/htdio-stg/deploy-templates/blob/main/.assets/img/aws.svg" height="38"></a> |
10+
| DigitalOcean | <a href="https://deploystack.io/deploy/mylar3-mylar3?provider=do&language=dop"><img src="https://github.com/htdio-stg/deploy-templates/blob/main/.assets/img/do.svg" height="38"></a> |
11+
| Render | <a href="https://deploystack.io/deploy/mylar3-mylar3?provider=rnd&language=rnd"><img src="https://github.com/htdio-stg/deploy-templates/blob/main/.assets/img/rnd.svg" height="38"></a> |
12+
| Helm | `helm repo add deploystack https://deploystackio.github.io/deploy-templates/`<br>`helm repo update`<br>`helm install mylar3-mylar3 deploystack/mylar3-mylar3` |
13+
14+
## 📦 What's Inside
15+
16+
This directory contains the following Infrastructure as Code templates:
17+
18+
- `aws-cloudformation.cf.yml` - AWS CloudFormation template
19+
- `render.yaml` - Render BluePrint
20+
- `.do/deploy.template.yaml` - DigitalOcean template
21+
- `helm/` - Helm Chart
22+
23+
## 🔍 Original Repository Details
24+
25+
- **Source Repository**: https://github.com/mylar3/mylar3
26+
- **License**: GNU General Public License v3.0
27+
28+
## ⚠️ Important Notice
29+
30+
These templates are automatically generated from the source repository's `docker-compose.yml` file or `docker run` using [docker-to-iac](https://github.com/deploystackio/docker-to-iac). While we strive for accuracy, please review the generated templates before deployment.
31+
32+
## 🛠 Usage
33+
34+
1. Choose your preferred cloud provider from the deploy buttons above
35+
2. Review the generated template
36+
3. Click deploy and follow the provider's setup process
37+
38+
## 📝 Generated Template Disclaimer
39+
⚖️ DISCLAIMER
40+
This Infrastructure as Code template was automatically generated by DeployStack.io
41+
Original source: https://github.com/mylar3/mylar3
42+
Original license: GNU General Public License v3.0
43+
44+
## 🔄 Updates
45+
46+
These templates are automatically updated when changes are detected in the source repository's `docker-compose.yml` file or a new version of `docker run` command has been released. You can always get the latest version by visiting [DeployStack.io](https://deploystack.io).
47+
48+
## 💬 Need Help?
49+
50+
- 📚 Visit our [Documentation](https://deploystack.io/docs)
51+
- 🎯 Report issues with generated templates on [GitHub](https://github.com/deploystackio/docker-to-iac/issues)
52+
- 📧 Use Discord to chat with us at [https://discord.gg/UjFWwByB](https://discord.gg/UjFWwByB)
53+
54+
---
55+
56+
<div align="center">
57+
<sub>Generated with ❤️ by <a href="https://deploystack.io">DeployStack.io</a></sub>
58+
</div>
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
AWSTemplateFormatVersion: 2010-09-09
2+
Description: Generated from container configuration by docker-to-iac
3+
Parameters:
4+
VPC:
5+
Type: AWS::EC2::VPC::Id
6+
SubnetA:
7+
Type: AWS::EC2::Subnet::Id
8+
SubnetB:
9+
Type: AWS::EC2::Subnet::Id
10+
ServiceName:
11+
Type: String
12+
Default: DeployStackService
13+
Resources:
14+
Cluster:
15+
Type: AWS::ECS::Cluster
16+
Properties:
17+
ClusterName: !Join ['', [!Ref ServiceName, Cluster]]
18+
ExecutionRole:
19+
Type: AWS::IAM::Role
20+
Properties:
21+
RoleName: !Join ['', [!Ref ServiceName, ExecutionRole]]
22+
AssumeRolePolicyDocument:
23+
Statement:
24+
- Effect: Allow
25+
Principal:
26+
Service: ecs-tasks.amazonaws.com
27+
Action: sts:AssumeRole
28+
ManagedPolicyArns:
29+
- arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy
30+
LogGroupdefault:
31+
Type: AWS::Logs::LogGroup
32+
Properties:
33+
LogGroupName: !Join ['', [/ecs/, !Ref ServiceName, TaskDefinitiondefault]]
34+
TaskDefinitiondefault:
35+
Type: AWS::ECS::TaskDefinition
36+
DependsOn:
37+
- LogGroupdefault
38+
Properties:
39+
Family: !Join ['', [!Ref ServiceName, TaskDefinitiondefault]]
40+
NetworkMode: awsvpc
41+
RequiresCompatibilities:
42+
- FARGATE
43+
Cpu: 512
44+
Memory: 1GB
45+
ExecutionRoleArn: !Ref ExecutionRole
46+
ContainerDefinitions:
47+
- Name: default
48+
Image: docker.io/linuxserver/mylar3:latest
49+
ReadonlyRootFilesystem: false
50+
PortMappings:
51+
- ContainerPort: 8090
52+
Environment:
53+
- name: PUID
54+
value: "1000"
55+
- name: PGID
56+
value: "1000"
57+
- name: TZ
58+
value: Etc/UTC
59+
LogConfiguration:
60+
LogDriver: awslogs
61+
Options:
62+
awslogs-region: !Ref AWS::Region
63+
awslogs-group: !Ref LogGroupdefault
64+
awslogs-stream-prefix: ecs
65+
ContainerSecurityGroupdefault:
66+
Type: AWS::EC2::SecurityGroup
67+
Properties:
68+
GroupDescription: !Join ['', [default, ContainerSecurityGroup]]
69+
VpcId: !Ref VPC
70+
SecurityGroupIngress:
71+
IpProtocol: tcp
72+
FromPort: 0
73+
ToPort: 65535
74+
CidrIp: 0.0.0.0/0
75+
Servicedefault:
76+
Type: AWS::ECS::Service
77+
Properties:
78+
ServiceName: default
79+
Cluster: !Ref Cluster
80+
TaskDefinition: !Ref TaskDefinitiondefault
81+
DesiredCount: 1
82+
LaunchType: FARGATE
83+
NetworkConfiguration:
84+
AwsvpcConfiguration:
85+
AssignPublicIp: ENABLED
86+
Subnets:
87+
- !Ref SubnetA
88+
- !Ref SubnetB
89+
SecurityGroups:
90+
- !Ref ContainerSecurityGroupdefault

mylar3-mylar3/docker-run.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker run -d -e PUID=1000 -e PGID=1000 -e TZ=Etc/UTC -p 8090:8090 -v ./mylar3-comics:/comics --restart unless-stopped lscr.io/linuxserver/mylar3:latest

mylar3-mylar3/helm/Chart.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v2
2+
name: mylar3-mylar3
3+
description: A Helm chart for DeployStack application generated from Docker configuration
4+
type: application
5+
version: 0.1.0
6+
appVersion: 1.0.0
7+
maintainers:
8+
- name: DeployStack
9+
email: hello@deploystack.io
10+
dependencies: []
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
Thank you for installing {{ .Chart.Name }}.
3+
4+
Your application has been deployed successfully!
5+
6+
{{- range $key, $service := .Values.services }}
7+
{{- if and $service.enabled $service.service.ports }}
8+
9+
Service {{ $key }}:
10+
{{- if contains "NodePort" $service.service.type }}
11+
Access on: http://NODE_IP:NODE_PORT
12+
Get the NodePort by running: kubectl get svc {{ include "deploystack.fullname" $ }}-{{ $key }}
13+
{{- else if contains "LoadBalancer" $service.service.type }}
14+
Access on: http://EXTERNAL_IP:PORT
15+
Get the LoadBalancer IP by running: kubectl get svc {{ include "deploystack.fullname" $ }}-{{ $key }}
16+
{{- else if contains "ClusterIP" $service.service.type }}
17+
Access within the cluster only
18+
Forward ports by running: kubectl port-forward svc/{{ include "deploystack.fullname" $ }}-{{ $key }} LOCAL_PORT:SERVICE_PORT
19+
{{- end }}
20+
{{- end }}
21+
{{- end }}
22+
23+
For more information on managing your application, see the Helm documentation:
24+
https://helm.sh/docs/
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
{{/*
3+
Expand the name of the chart.
4+
*/}}
5+
{{- define "deploystack.name" -}}
6+
{{- default .Chart.Name .Values.global.nameOverride | trunc 63 | trimSuffix "-" }}
7+
{{- end }}
8+
9+
{{/*
10+
Create a default fully qualified app name.
11+
*/}}
12+
{{- define "deploystack.fullname" -}}
13+
{{- if .Values.global.fullnameOverride }}
14+
{{- .Values.global.fullnameOverride | trunc 63 | trimSuffix "-" }}
15+
{{- else }}
16+
{{- $name := default .Chart.Name .Values.global.nameOverride }}
17+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
18+
{{- end }}
19+
{{- end }}
20+
21+
{{/*
22+
Create chart name and version as used by the chart label.
23+
*/}}
24+
{{- define "deploystack.chart" -}}
25+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
26+
{{- end }}
27+
28+
{{/*
29+
Common labels
30+
*/}}
31+
{{- define "deploystack.labels" -}}
32+
helm.sh/chart: {{ include "deploystack.chart" . }}
33+
{{ include "deploystack.selectorLabels" . }}
34+
{{- if .Chart.AppVersion }}
35+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
36+
{{- end }}
37+
app.kubernetes.io/managed-by: {{ .Release.Service }}
38+
{{- end }}
39+
40+
{{/*
41+
Selector labels
42+
*/}}
43+
{{- define "deploystack.selectorLabels" -}}
44+
app.kubernetes.io/name: {{ include "deploystack.name" . }}
45+
app.kubernetes.io/instance: {{ .Release.Name }}
46+
{{- end }}
47+
48+
{{/*
49+
Service reference helper
50+
*/}}
51+
{{- define "deploystack.serviceReference" -}}
52+
{{- if .service }}
53+
{{- if .service.service.ports }}
54+
{{- with index .service.service.ports 0 }}
55+
{{ $.serviceKey }}.{{ $.serviceName }}.svc.cluster.local:{{ .port }}
56+
{{- end }}
57+
{{- else }}
58+
{{ $.serviceKey }}.{{ $.serviceName }}.svc.cluster.local
59+
{{- end }}
60+
{{- else }}
61+
unknown-service-reference
62+
{{- end }}
63+
{{- end }}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
{{- range $key, $service := .Values.services }}
3+
{{- if $service.enabled }}
4+
{{- if $service.environment.regular }}
5+
apiVersion: v1
6+
kind: ConfigMap
7+
metadata:
8+
name: {{ include "deploystack.fullname" $ }}-{{ $key }}-config
9+
labels:
10+
{{- include "deploystack.labels" $ | nindent 4 }}
11+
app.kubernetes.io/component: {{ $key }}
12+
data:
13+
{{- toYaml $service.environment.regular | nindent 2 }}
14+
{{- end }}
15+
16+
{{- if $service.dependencies }}
17+
---
18+
apiVersion: v1
19+
kind: ConfigMap
20+
metadata:
21+
name: {{ include "deploystack.fullname" $ }}-{{ $key }}-dependencies
22+
labels:
23+
{{- include "deploystack.labels" $ | nindent 4 }}
24+
app.kubernetes.io/component: {{ $key }}
25+
data:
26+
{{- range $service.dependencies }}
27+
{{- $serviceName := .service }}
28+
{{- range $envKey, $envValue := .variables }}
29+
{{ $envKey }}: {{ include "deploystack.serviceReference" (dict "service" (index $.Values.services $serviceName) "serviceKey" $serviceName) }}
30+
{{- end }}
31+
{{- end }}
32+
{{- end }}
33+
{{- end }}
34+
{{- end }}

0 commit comments

Comments
 (0)