summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/redmine.yml
blob: c85f4ce420af1925e345b8680060b5cd88a00075 (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
captainVersion: 4
services:
    $$cap_appname-db:
        image: postgres:$$cap_postgres_version
        restart: always
        volumes:
            - $$cap_appname-db-data:/var/lib/postgresql/data
        environment:
            POSTGRES_USER: $$cap_postgres_user
            POSTGRES_PASSWORD: $$cap_postgres_password
            POSTGRES_DB: redmine
            PGDATA: /var/lib/postgresql/data/pgdata
        caproverExtra:
            notExposeAsWebApp: 'true'

    $$cap_appname:
        depends_on:
            - $$cap_appname-db
        image: redmine:$$cap_redmine_version
        environment:
            REDMINE_DB_POSTGRES: srv-captain--$$cap_appname-db
            REDMINE_DB_PORT: 5432
            REDMINE_DB_DATABASE: redmine
            REDMINE_DB_USERNAME: $$cap_postgres_user
            REDMINE_DB_PASSWORD: $$cap_postgres_password
            REDMINE_SECRET_KEY_BASE: $$cap_key_base
        restart: always
        volumes:
            - $$cap_appname-data:/usr/src/redmine/files
            - $$cap_appname-themes:/usr/src/redmine/public/themes
            - $$cap_appname-plugins:/usr/src/redmine/plugins
        caproverExtra:
            containerHttpPort: '3000'

caproverOneClickApp:
    variables:
        - id: $$cap_redmine_version
          label: Redmine Version
          defaultValue: '5.0.4'
          description: 'Check out their Docker page for the valid tags https://hub.docker.com/_/redmine?tab=tags'
        - id: $$cap_postgres_version
          label: PostgreSQL Version
          defaultValue: '15.1'
          description: 'Check out their Docker page for the valid tags https://hub.docker.com/_/postgres?tab=tags'
        - id: $$cap_postgres_user
          label: PostgreSQL username
          defaultValue: 'redmine'
        - id: $$cap_postgres_password
          label: PostgreSQL Password
          defaultValue: $$cap_gen_random_hex(16)
        - id: $$cap_key_base
          label: Redmine Secret Key Base
          defaultValue: $$cap_gen_random_hex(64)

    instructions:
        start: |
            Redmine is a flexible project management web application written using Ruby on Rails framework. For more info visit https://www.redmine.org/projects/redmine.

            --------------------------------------------
            Following the installation, login with the default credentials:

            Username: `admin`
            Password: `admin`

        end: |
            ✅  Redmine has been successfully deployed and is now available at http://$$cap_appname.$$cap_root_domain!

            🔐 The default login credentials are:

            Username: `admin`
            Password: `admin`

            --------------------------------------------
            📂 Access to the required folder for uploading files, plugins, and themes is provided using Caprover managed persistent directories by default (`/var/lib/docker/volumes/$$cap_appname-data`).

            -------------------------------------------- 
            🔰 More information on initial configuration can be found at https://www.redmine.org/projects/redmine/wiki/RedmineInstall#Configuration.

    displayName: Redmine (PostgreSQL)
    isOfficial: true
    description: >-
        Redmine is a flexible project management web application written using Ruby on Rails framework. This app is packaged with PostgreSQL.
    documentation: >-
        More information on initial configuration can be found at https://www.redmine.org/projects/redmine/wiki/RedmineInstall#Configuration. This template was developed using variables from https://hub.docker.com/_/redmine?tab=description.