summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/photoprism.yml
blob: 86515d26134a07cfc9ff6c1041e30f84af2dd29d (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: 'photoprism/photoprism:$$app_version'
        depends_on:
            - $$cap_appname-db
        environment:
            PHOTOPRISM_ADMIN_PASSWORD: $$app_admin_password
            PHOTOPRISM_AUTH_MODE: password
            PHOTOPRISM_SITE_URL: 'https://$$cap_appname.$$cap_root_domain'
            PHOTOPRISM_ORIGINALS_LIMIT: $$app_upload_size_limit
            PHOTOPRISM_HTTP_COMPRESSION: gzip
            PHOTOPRISM_UPLOAD_NSFW: 'true'
            PHOTOPRISM_DATABASE_DRIVER: mysql
            PHOTOPRISM_DATABASE_SERVER: srv-captain--$$cap_appname-db
            PHOTOPRISM_DATABASE_NAME: photoprism
            PHOTOPRISM_DATABASE_USER: photoprism
            PHOTOPRISM_DATABASE_PASSWORD: $$db_password
        volumes:
            - '$$cap_appname-originals:/photoprism/originals'
            - '$$cap_appname-storage:/photoprism/storage'
        working_dir: /photoprism
        labels:
            $$cap_appname-chadburn.enabled: $$chadburn_enabled
            $$cap_appname-chadburn.job-exec.photoprism_index.schedule: '$$chadburn_index_schedule'
            $$cap_appname-chadburn.job-exec.photoprism_index.command: 'photoprism index --cleanup'
        caproverExtra:
            containerHttpPort: '2342'
    $$cap_appname-db:
        restart: unless-stopped
        image: 'mariadb:$$db_version'
        volumes:
            - '$$cap_appname-db:/var/lib/mysql'
        environment:
            MARIADB_AUTO_UPGRADE: '1'
            MARIADB_INTDB_SKIP_TZINFO: '1'
            MARIADB_DATABASE: photoprism
            MARIADB_USER: photoprism
            MARIADB_PASSWORD: $$db_password
            MARIADB_ROOT_PASSWORD: $$db_root_password
        caproverExtra:
            notExposeAsWebApp: 'true'
    $$cap_appname-chadburn:
        restart: unless-stopped
        image: 'premoweb/chadburn:$$chadburn_version'
        volumes:
            - '/var/run/docker.sock:/var/run/docker.sock:ro'
        caproverExtra:
            notExposeAsWebApp: 'true'
caproverOneClickApp:
    variables:
        - id: $$app_version
          label: Photoprism Version
          defaultValue: 220901-bullseye
          description: >-
              Check out their Docker page for the valid tags
              https://hub.docker.com/r/photoprism/photoprism/tags
          validRegex: '/^([^\s^\/])+$/'
        - id: $$app_admin_password
          label: Photoprism Admin Password
          defaultValue: $$cap_gen_random_hex(32)
          description: Set a secure password for the admin user
          validRegex: '/.{1,}/'
        - id: $$app_upload_size_limit
          label: File Size Limit
          defaultValue: '5000'
          description: File Size Limit for Originals in MB
          validRegex: '/^([^\s^\/])+$/'
        - id: $$db_version
          label: Mariadb Version
          defaultValue: '10.9'
          description: >-
              Check out their Docker page for the valid tags
              https://hub.docker.com/_/mariadb/tags
          validRegex: '/^([^\s^\/])+$/'
        - id: $$db_password
          label: MariaDB User Password
          defaultValue: $$cap_gen_random_hex(32)
          description: User password for the database
          validRegex: '/.{1,}/'
        - id: $$db_root_password
          label: MariaDB Root Password
          defaultValue: $$cap_gen_random_hex(32)
          description: Root password for the database
          validRegex: '/.{1,}/'
        - id: $$chadburn_version
          label: Chadburn Version
          defaultValue: 1.0.3
          description: >-
              Check out their Docker page for the valid tags
              https://hub.docker.com/r/premoweb/chadburn/tags
        - id: $$chadburn_enabled
          label: Enable scheduling for indexing files
          defaultValue: false
          description: >-
              Enable scheduling for indexing files from the originals folder. Useful is the originals folder is shared by another app, like nextcloud, etc. For scheduling imports, etc, simply use the photoprism GUI.
        - id: $$chadburn_index_schedule
          label: Enable scheduling for indexing files in the originals folder
          defaultValue: '@every 1h'
          description: >-
              Set the time frame for scheduling indexing files from the originals folder. Check out the allowed values here: https://github.com/PremoWeb/chadburn
    instructions:
        start: |-
            AI-Powered Photos App for the Decentralized Web
            More details: https://photoprism.app/
        end: >-
            Photoprism  has been successfully deployed! Important further steps:
            1. Enable HTTPS on the domain.
            2. Enable websocket support
    displayName: Photoprism (vbbot)
    isOfficial: true
    description: AI-Powered Photos App for the Decentralized Web
    documentation: 'See https://photoprism.app/'