summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/glitchtip.yml
blob: 1ceda45c58f9a96c85adf79c81827696fc9acc95 (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
114
captainVersion: 4
services:
    $$cap_appname-postgres:
        image: postgres:$$cap_POSTGRES_VERSION
        environment:
            POSTGRES_USER: glitchtip
            POSTGRES_PASSWORD: $$cap_POSTGRES_PASSWORD
        volumes:
            - $$cap_appname-postgres-data:/var/lib/postgresql/data
        caproverExtra:
            notExposeAsWebApp: 'true'
    $$cap_appname-redis:
        environment:
            REDIS_PASSWORD: $$cap_REDIS_PASSWORD
        caproverExtra:
            dockerfileLines:
                - FROM redis:$$cap_REDIS_VERSION
                - CMD exec redis-server --requirepass "$$cap_REDIS_PASSWORD"
            notExposeAsWebApp: 'true'
    $$cap_appname:
        depends_on:
            - $$cap_appname-postgres
            - $$cap_appname-redis
        environment:
            DATABASE_URL: postgres://glitchtip:$$cap_POSTGRES_PASSWORD@srv-captain--$$cap_appname-postgres:5432/glitchtip
            REDIS_URL: redis://:$$cap_REDIS_PASSWORD@srv-captain--$$cap_appname-redis:6379
            SECRET_KEY: $$cap_SECRET
            PORT: 8000
            EMAIL_URL: $$cap_SMTP
            GLITCHTIP_DOMAIN: http://$$cap_appname.$$cap_root_domain
            DEFAULT_FROM_EMAIL: $$cap_FROM_EMAIL
            CELERY_WORKER_CONCURRENCY: $$cap_CELERY_WORKER_CONCURRENCY
        caproverExtra:
            containerHttpPort: '8000'
            dockerfileLines:
                - FROM glitchtip/glitchtip:$$cap_GLITCHTIP_VERSION
                - CMD ./manage.py migrate && ./bin/start.sh
    $$cap_appname-worker:
        depends_on:
            - $$cap_appname-postgres
            - $$cap_appname-redis
        environment:
            DATABASE_URL: postgres://glitchtip:$$cap_POSTGRES_PASSWORD@srv-captain--$$cap_appname-postgres:5432/glitchtip
            REDIS_URL: redis://:$$cap_REDIS_PASSWORD@srv-captain--$$cap_appname-redis:6379
            SECRET_KEY: $$cap_SECRET
            PORT: 8000
            EMAIL_URL: $$cap_SMTP
            GLITCHTIP_DOMAIN: http://$$cap_appname.$$cap_root_domain
            DEFAULT_FROM_EMAIL: $$cap_FROM_EMAIL
            CELERY_WORKER_CONCURRENCY: $$cap_CELERY_WORKER_CONCURRENCY
        caproverExtra:
            dockerfileLines:
                - FROM glitchtip/glitchtip:$$cap_GLITCHTIP_VERSION
                - CMD ./bin/run-celery-with-beat.sh
            notExposeAsWebApp: 'true'
caproverOneClickApp:
    variables:
        - id: $$cap_GLITCHTIP_VERSION
          label: GlitchTip Version
          defaultValue: 'v3.1.2'
          description: Check out their Docker page for the valid tags https://hub.docker.com/r/glitchtip/glitchtip/tags
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_POSTGRES_VERSION
          label: Postgres Version
          defaultValue: '15'
          description: Check out their Docker page for the valid tags https://hub.docker.com/_/postgres/tags
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_REDIS_VERSION
          label: Redis Version
          defaultValue: '7.0-alpine'
          description: Check out their docker page for the valid tags https://hub.docker.com/_/redis?tab=tags
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_CELERY_WORKER_CONCURRENCY
          defaultValue: '2'
          description: Number of concurrent celery workers. Defaults to number of CPU cores. Highly recommended to change. Our sample docker compose file defaults this to 2, to avoid unwanted and unnecessary scaling.
          label: Celery Worker Concurrency
        - id: $$cap_SMTP
          defaultValue: smtp://email:password@smtp_url:port
          description: See https://glitchtip.com/documentation/install#configuration.
          label: SMTP Configuration
        - id: $$cap_FROM_EMAIL
          defaultValue: [email protected]
          description: Default from email address.
          label: Email Address
        - id: $$cap_POSTGRES_PASSWORD
          defaultValue: $$cap_gen_random_hex(24)
          description: This is the PostgreSQL password for user 'glitchtip'.
          label: PostgreSQL Password
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_REDIS_PASSWORD
          defaultValue: $$cap_gen_random_hex(24)
          description: This is the PostgreSQL password for user 'glitchtip'.
          label: Redis Password
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_SECRET
          label: Secret Key
          defaultValue: $$cap_gen_random_hex(32)
          description: Secret key used by glitchtip.
          validRegex: /^([^\s^\/])+$/
    instructions:
        start: |-
            GlitchTip makes monitoring software easy. Track errors, monitor performance, and check site uptime all in one place. Our app is compatible with Sentry client SDKs, but easier to run.

            Recommended system requirements: 1GB RAM, x86 or arm64 CPU

            Documentation: https://glitchtip.com/documentation
        end: |-
            GlitchTip instance successfully deployed. It will allow you to register an account, afterwards you can set ENABLE_USER_REGISTRATION=false to disable further registrations.
            If you want to use a different domain change the `GLITCHTIP_DOMAIN` variable.
            See https://glitchtip.com/documentation/install for additional environment variables available.
    displayName: GlitchTip
    isOfficial: true
    description: Simple, open source error tracking.
    documentation: This docker-compose is taken from https://glitchtip.com/assets/docker-compose.sample.yml