summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/mixpost.yml
blob: 7750803b24e43d50d96b08f8a0403a1c1b77e2d8 (plain)
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
109
110
111
112
113
captainVersion: 4
services:
    $$cap_appname:
        image: inovector/mixpost:$$cap_MIXPOST_VERSION
        environment:
            APP_NAME: $$cap_MIXPOST_APP_NAME
            APP_KEY: $$cap_MIXPOST_APP_KEY
            APP_URL: http://$$cap_appname.$$cap_root_domain
            DB_DATABASE: $$cap_MYSQL_DATABASE
            DB_USERNAME: $$cap_MYSQL_USER
            DB_PASSWORD: $$cap_MYSQL_PASSWORD
            REDIS_PASSWORD: $$cap_REDIS_PASSWORD
            APP_ENV: $$cap_MIXPOST_APP_ENV
            APP_DEBUG: $$cap_MIXPOST_APP_DEBUG
            DB_HOST: srv-captain--$$cap_appname-db
            REDIS_HOST: srv-captain--$$cap_appname-cache
        depends_on:
            - $$cap_appname-db
            - $$cap_appname-cache
        volumes:
            - $$cap_appname-storage:/var/www/html/storage/app
            - $$cap_appname-logs:/var/www/html/storage/logs
    $$cap_appname-db:
        caproverExtra:
            notExposeAsWebApp: 'true'
        image: mysql:$$cap_MYSQL_VERSION
        environment:
            MYSQL_ROOT_PASSWORD: $$cap_MYSQL_PASSWORD
            MYSQL_DATABASE: $$cap_MYSQL_DATABASE
            MYSQL_USER: $$cap_MYSQL_USER
            MYSQL_PASSWORD: $$cap_MYSQL_PASSWORD
        volumes:
            - $$cap_appname-db:/var/lib/mysql
    $$cap_appname-cache:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM redis:$$cap_REDIS_VERSION
                - CMD redis-server --appendonly yes --replica-read-only no --requirepass "$$cap_REDIS_PASSWORD"
        volumes:
            - $$cap_appname-cache:/data
caproverOneClickApp:
    displayName: Mixpost
    description: Self-Hosted Social Media Management Software
    isOfficial: true
    documentation: https://mixpost.app
    instructions:
        start: |-
            Easily create, schedule, publish, and manage social media content in one place, with no limits or monthly subscription fees.
            It's the perfect social media management solution for bloggers, crafters and entrepreneurs.
        end: |-
            Mixpost has been successfully deployed! It might take few moments before it's fully started.
            You can access the application at `http://$$cap_appname.$$cap_root_domain`.
            Find the administrator login details in the logs.
            If you enabled HTTPS, you should adjust the `APP_URL` environment variable accordingly.
    variables:
        - id: $$cap_MIXPOST_VERSION
          label: Application | Version
          description: Mixpost version. Check out their valid tags at https://hub.docker.com/r/inovector/mixpost
          defaultValue: 'v1.1.3'
          validRegex: /.{1,}/
        - id: $$cap_MYSQL_VERSION
          label: Database | Version
          description: MySQL version. Check out their valid tags at https://hub.docker.com/_/mysql/tags
          defaultValue: '8.0.32'
          validRegex: /.{1,}/
        - id: $$cap_REDIS_VERSION
          label: Cache | Version
          description: Redis version. Check out their valid tags at https://hub.docker.com/_/redis/tags
          defaultValue: '7.0-alpine'
          validRegex: /.{1,}/
        - id: $$cap_MIXPOST_APP_NAME
          label: Application | Name
          description: Name of the application.
          defaultValue: Mixpost
          validRegex: /.{1,}/
        - id: $$cap_MIXPOST_APP_KEY
          label: Application | Key
          description: |-
              Base64 encoded application key for encryption.
              Use `https://generate-random.org/laravel-key-generator?count=1` to generate a key.
          defaultValue: base64:d3p4OHptbnFvZXA4bjlieW5wa284MmdlaTY3NjMxa3E=
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_MIXPOST_APP_ENV
          label: Application | Environment
          description: Application environment. Possible values are `local`, `production` and `testing`.
          defaultValue: production
          validRegex: /^(production|local|testing)$/
        - id: $$cap_MIXPOST_APP_DEBUG
          label: Application | Debug Information
          description: Whether to show debug information.
          defaultValue: 'false'
          validRegex: /^(true|false)$/
        - id: $$cap_REDIS_PASSWORD
          label: Cache | Password
          description: Password of the Redis instance.
          defaultValue: $$cap_gen_random_hex(16)
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_MYSQL_DATABASE
          label: Database | Name
          description: Name of the MySQL database.
          defaultValue: mixpost
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_MYSQL_USER
          label: Database | User Name
          description: Name of the MySQL user.
          defaultValue: mixpost
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_MYSQL_PASSWORD
          label: Database | User Password
          description: Password of the MySQL user.
          defaultValue: $$cap_gen_random_hex(16)
          validRegex: /^([^\s^\/])+$/