summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/planka.yml
blob: 69926f4823701f3d933e4e515cfcc512d095a3f1 (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
captainVersion: 4
services:
    $$cap_appname:
        caproverExtra:
            containerHttpPort: $$cap_PLANKA_PORT
            dockerfileLines:
                - FROM ghcr.io/plankanban/planka:$$cap_PLANKA_VERSION
                - CMD ["bash", "-c", "for i in `seq 1 30`; do ./start.sh && s=$$? && break || s=$$?; echo \"Tried $$i times. Waiting 5 seconds...\"; sleep 5; done; (exit $$s)"]
        environment:
            BASE_URL: http://$$cap_appname.$$cap_root_domain
            TRUST_PROXY: $$cap_PLANKA_TRUST_PROXY
            DATABASE_URL: postgresql://$$cap_POSTGRES_USER:$$cap_POSTGRES_PASSWORD@srv-captain--$$cap_appname-db/$$cap_POSTGRES_DB
            SECRET_KEY: $$cap_PLANKA_SECRET_KEY
        hostname: $$cap_appname.$$cap_root_domain
        depends_on:
            - $$cap_appname-db
        volumes:
            - $$cap_appname-user-avatars:/app/public/user-avatars
            - $$cap_appname-project-background-images:/app/public/project-background-images
            - $$cap_appname-attachments:/app/private/attachments
    $$cap_appname-db:
        caproverExtra:
            notExposeAsWebApp: 'true'
        image: postgres:$$cap_POSTGRES_VERSION
        volumes:
            - $$cap_appname-db:/var/lib/postgresql/data
        environment:
            POSTGRES_USER: $$cap_POSTGRES_USER
            POSTGRES_PASSWORD: $$cap_POSTGRES_PASSWORD
            POSTGRES_DB: $$cap_POSTGRES_DB
            POSTGRES_HOST_AUTH_METHOD: $$cap_POSTGRES_HOST_AUTH_METHOD
caproverOneClickApp:
    instructions:
        start: |-
            Planka is a Trello-like kanban board built with React and Redux.
        end: |-
            Planka has been successfully deployed! It might take few moments before it's fully started.
            You can access it at `http://$$cap_appname.$$cap_root_domain` with user `[email protected]` and password `demo`.

            Please do the following steps:
            1. Activate **WebSocket Support**
            2. If you enabled HTTPS, you should adjust the `BASE_URL` environment variable accordingly

            Enjoy your self-hosted Trello alternative!
    displayName: Planka
    isOfficial: true
    description: Realtime Kanban Board for Workgroups
    documentation: https://github.com/plankanban/planka#deploy
    variables:
        - id: $$cap_PLANKA_VERSION
          label: General | Planka Version
          description: Check out their valid tags at https://github.com/orgs/plankanban/packages/container/package/planka
          defaultValue: '1.8.4'
          validRegex: /.{1,}/
        - id: $$cap_POSTGRES_VERSION
          label: General | PostgreSQL Version
          description: Check out their valid tags at https://hub.docker.com/r/btcpayserver/postgres/tags
          defaultValue: '13.7'
          validRegex: /.{1,}/
        - id: $$cap_PLANKA_PORT
          label: Application | Port
          description: Port of the Planka host.
          defaultValue: 1337
          validRegex: /.{1,}/
        - id: $$cap_PLANKA_TRUST_PROXY
          label: Application | Trust Proxy
          description: Whether to trust proxy in Planka.
          defaultValue: 'false'
          validRegex: /.{1,}/
        - id: $$cap_PLANKA_SECRET_KEY
          label: Application | Secret Key
          description: Secret key for data encryption.
          defaultValue: $$cap_gen_random_hex(32)
          validRegex: /.{1,}/
        - id: $$cap_POSTGRES_USER
          label: Database | User Name
          description: User name of the PostgreSQL database.
          defaultValue: planka
          validRegex: /.{1,}/
        - id: $$cap_POSTGRES_PASSWORD
          label: Database | User Password
          description: User password of the PostgreSQL database.
          defaultValue: $$cap_gen_random_hex(16)
          validRegex: /.{1,}/
        - id: $$cap_POSTGRES_DB
          label: Database | Name
          description: Name of the PostgreSQL database.
          defaultValue: planka
          validRegex: /.{1,}/
        - id: $$cap_POSTGRES_HOST_AUTH_METHOD
          label: Database | Host Authentication Method
          description: Method of the PostgreSQL host authentication.
          defaultValue: trust
          validRegex: /.{1,}/