| @ -0,0 +1,15 @@ | |||
| apiVersion: v1 | |||
| kind: PersistentVolumeClaim | |||
| metadata: | |||
| creationTimestamp: null | |||
| labels: | |||
| io.kompose.service: appsmith-claim0 | |||
| name: appsmith-claim0 | |||
| namespace: appsmith | |||
| spec: | |||
| accessModes: | |||
| - ReadWriteOnce | |||
| resources: | |||
| requests: | |||
| storage: 45Gi | |||
| status: {} | |||
| @ -0,0 +1,43 @@ | |||
| apiVersion: apps/v1 | |||
| kind: Deployment | |||
| metadata: | |||
| annotations: | |||
| kompose.cmd: kompose convert | |||
| kompose.version: 1.26.0 (40646f47) | |||
| creationTimestamp: null | |||
| labels: | |||
| io.kompose.service: appsmith | |||
| name: appsmith | |||
| namespace: appsmith | |||
| spec: | |||
| replicas: 1 | |||
| selector: | |||
| matchLabels: | |||
| io.kompose.service: appsmith | |||
| strategy: | |||
| type: Recreate | |||
| template: | |||
| metadata: | |||
| annotations: | |||
| kompose.cmd: kompose convert | |||
| kompose.version: 1.26.0 (40646f47) | |||
| creationTimestamp: null | |||
| labels: | |||
| io.kompose.service: appsmith | |||
| spec: | |||
| containers: | |||
| - image: index.docker.io/appsmith/appsmith-ce | |||
| name: appsmith | |||
| ports: | |||
| - containerPort: 80 | |||
| - containerPort: 443 | |||
| resources: {} | |||
| volumeMounts: | |||
| - mountPath: /appsmith-stacks | |||
| name: appsmith-claim0 | |||
| restartPolicy: Always | |||
| volumes: | |||
| - name: appsmith-claim0 | |||
| persistentVolumeClaim: | |||
| claimName: appsmith-claim0 | |||
| status: {} | |||
| @ -0,0 +1,10 @@ | |||
| apiVersion: v1 | |||
| kind: Secret | |||
| metadata: | |||
| name: mysql-pass | |||
| namespace: appsmith | |||
| type: Opaque | |||
| stringData: | |||
| db_password: Dsa-0213 | |||
| password: Dsa-0213 | |||
| db_user: root | |||
| @ -0,0 +1,26 @@ | |||
| apiVersion: v1 | |||
| kind: Service | |||
| metadata: | |||
| annotations: | |||
| kompose.cmd: kompose convert | |||
| kompose.version: 1.26.0 (40646f47) | |||
| creationTimestamp: null | |||
| labels: | |||
| io.kompose.service: appsmith | |||
| name: appsmith | |||
| namespace: appsmith | |||
| spec: | |||
| type: NodePort | |||
| ports: | |||
| - name: "80" | |||
| port: 80 | |||
| nodePort: 30780 | |||
| targetPort: 80 | |||
| - name: "443" | |||
| port: 443 | |||
| nodePort: 30743 | |||
| targetPort: 443 | |||
| selector: | |||
| io.kompose.service: appsmith | |||
| status: | |||
| loadBalancer: {} | |||
| @ -0,0 +1,27 @@ | |||
| version: "3" | |||
| services: | |||
| appsmith: | |||
| image: index.docker.io/appsmith/appsmith-ce | |||
| container_name: appsmith | |||
| ports: | |||
| - "80:80" | |||
| - "443:443" | |||
| volumes: | |||
| - ./stacks:/appsmith-stacks | |||
| restart: unless-stopped | |||
| # Uncomment the lines below to enable auto-update | |||
| #labels: | |||
| # com.centurylinklabs.watchtower.enable: "true" | |||
| #auto_update: | |||
| # image: containrrr/watchtower | |||
| # volumes: | |||
| # - /var/run/docker.sock:/var/run/docker.sock | |||
| # # Update check interval in seconds. | |||
| # command: --schedule "0 0 * ? * *" --label-enable --cleanup | |||
| # restart: unless-stopped | |||
| # depends_on: | |||
| # - appsmith | |||
| # environment: | |||
| # - WATCHTOWER_LIFECYCLE_HOOKS=true | |||
| @ -0,0 +1,76 @@ | |||
| apiVersion: v1 | |||
| kind: Service | |||
| metadata: | |||
| name: appsmith-mysql | |||
| namespace: appsmith | |||
| labels: | |||
| app: appsmith | |||
| spec: | |||
| type: NodePort | |||
| ports: | |||
| - name: mysql | |||
| port: 3306 | |||
| nodePort: 30785 | |||
| targetPort: mysql | |||
| selector: | |||
| app: appsmith | |||
| tier: mysql | |||
| --- | |||
| apiVersion: v1 | |||
| kind: PersistentVolumeClaim | |||
| metadata: | |||
| name: mysql-pv-claim | |||
| namespace: appsmith | |||
| labels: | |||
| app: appsmith | |||
| spec: | |||
| accessModes: | |||
| - ReadWriteOnce | |||
| resources: | |||
| requests: | |||
| storage: 25Gi | |||
| selector: | |||
| matchLabels: | |||
| app: mysql | |||
| --- | |||
| apiVersion: apps/v1 | |||
| kind: Deployment | |||
| metadata: | |||
| name: appsmith-mysql | |||
| namespace: appsmith | |||
| labels: | |||
| app: appsmith | |||
| spec: | |||
| selector: | |||
| matchLabels: | |||
| app: appsmith | |||
| tier: mysql | |||
| strategy: | |||
| type: Recreate | |||
| template: | |||
| metadata: | |||
| labels: | |||
| app: appsmith | |||
| tier: mysql | |||
| spec: | |||
| containers: | |||
| - image: mariadb:latest | |||
| name: mysql | |||
| env: | |||
| - name: MYSQL_ROOT_PASSWORD | |||
| valueFrom: | |||
| secretKeyRef: | |||
| name: mysql-pass | |||
| key: password | |||
| ports: | |||
| - containerPort: 3306 | |||
| name: mysql | |||
| volumeMounts: | |||
| - name: mysql-persistent-storage | |||
| mountPath: /var/lib/mysql | |||
| imagePullSecrets: | |||
| - name: reg-cred-secret | |||
| volumes: | |||
| - name: mysql-persistent-storage | |||
| persistentVolumeClaim: | |||
| claimName: mysql-pv-claim | |||
| @ -0,0 +1,57 @@ | |||
| apiVersion: v1 | |||
| kind: Service | |||
| metadata: | |||
| name: phpmyadmin-appsmith | |||
| namespace: appsmith | |||
| labels: | |||
| app: appsmith | |||
| spec: | |||
| selector: | |||
| app: appsmith | |||
| tier: phpmyadmin | |||
| type: NodePort | |||
| ports: | |||
| - name: phpadmin | |||
| port: 80 | |||
| nodePort: 30486 | |||
| targetPort: phpmyadm | |||
| --- | |||
| apiVersion: apps/v1 | |||
| kind: Deployment | |||
| metadata: | |||
| name: phpmyadmin-appsmith | |||
| namespace: appsmith | |||
| labels: | |||
| app: appsmith | |||
| spec: | |||
| selector: | |||
| matchLabels: | |||
| app: appsmith | |||
| tier: phpmyadmin | |||
| strategy: | |||
| type: Recreate | |||
| template: | |||
| metadata: | |||
| labels: | |||
| app: appsmith | |||
| tier: phpmyadmin | |||
| spec: | |||
| containers: | |||
| - name: phpmyadmin | |||
| image: phpmyadmin | |||
| ports: | |||
| - containerPort: 80 | |||
| name: phpmyadm | |||
| env: | |||
| - name: PMA_HOST | |||
| value: appsmith-mysql | |||
| - name: PMA_PORT | |||
| value: "3306" | |||
| - name: MYSQL_ROOT_PASSWORD | |||
| valueFrom: | |||
| secretKeyRef: | |||
| name: mysql-pass | |||
| key: password | |||
| imagePullSecrets: | |||
| - name: reg-cred-secret | |||
| @ -0,0 +1,14 @@ | |||
| apiVersion: v1 | |||
| kind: PersistentVolume | |||
| metadata: | |||
| name: appsmith-app-folder | |||
| labels: | |||
| app: appsmith | |||
| spec: | |||
| capacity: | |||
| storage: 45Gi | |||
| accessModes: | |||
| - ReadWriteOnce | |||
| hostPath: | |||
| path: "/mnt/Externo/appsmith/appsmith-app" | |||
| @ -0,0 +1,13 @@ | |||
| apiVersion: v1 | |||
| kind: PersistentVolume | |||
| metadata: | |||
| name: appsmith-data | |||
| labels: | |||
| app: mysql | |||
| spec: | |||
| capacity: | |||
| storage: 25Gi | |||
| accessModes: | |||
| - ReadWriteOnce | |||
| hostPath: | |||
| path: "/mnt/Externo/appsmith/appsmith-db" | |||