summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/appwrite.yml
blob: 9b07ecfba6e9e389bcbb18c8df617920228ab0d7 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
captainVersion: 4

services:
    $$cap_appname-redis:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM redis:7.0.4-alpine
                - CMD ["--maxmemory", "512mb", "--maxmemory-policy", "allkeys-lru", "--maxmemory-samples", "5"]
        volumes:
            - $$cap_appname-redis:/data

    $$cap_appname-mariadb:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM mariadb:10.7
                - CMD ["--innodb-flush-method", "fsync"]
        environment:
            MARIADB_ROOT_PASSWORD: $$cap_APP_DB_ROOT_PASS
            MARIADB_DATABASE: $$cap_APP_DB_SCHEMA
            MARIADB_USER: $$cap_APP_DB_USER
            MARIADB_PASSWORD: $$cap_APP_DB_PASS
        volumes:
            - $$cap_appname-mariadb:/var/lib/mysql

    $$cap_appname-influxdb:
        caproverExtra:
            notExposeAsWebApp: 'true'
        image: appwrite/influxdb:1.5.0
        volumes:
            - $$cap_appname-influxdb:/var/lib/influxdb

    $$cap_appname-telegraf:
        caproverExtra:
            notExposeAsWebApp: 'true'
        image: appwrite/telegraf:1.4.0
        environment:
            _APP_INFLUXDB_HOST: srv-captain--$$cap_appname-influxdb
            _APP_INFLUXDB_PORT: $$cap_APP_INFLUXDB_PORT
        volumes:
            - $$cap_appname-influxdb:/var/lib/influxdb

    $$cap_appname:
        image: appwrite/appwrite:$$cap_APP_VERSION
        volumes:
            - $$cap_appname-uploads:/storage/uploads
            - $$cap_appname-cache:/storage/cache
            - $$cap_appname-config:/storage/config
            - $$cap_appname-certificates:/storage/certificates
            - $$cap_appname-functions:/storage/functions
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
            - $$cap_appname-influxdb
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_WORKER_PER_CORE: $$cap_APP_WORKER_PER_CORE
            _APP_LOCALE: $$cap_APP_LOCALE
            _APP_CONSOLE_WHITELIST_ROOT: $$cap_APP_CONSOLE_WHITELIST_ROOT
            _APP_CONSOLE_WHITELIST_EMAILS: $$cap_APP_CONSOLE_WHITELIST_EMAILS
            _APP_CONSOLE_WHITELIST_IPS: $$cap_APP_CONSOLE_WHITELIST_IPS
            _APP_SYSTEM_EMAIL_NAME: $$cap_APP_SYSTEM_EMAIL_NAME
            _APP_SYSTEM_EMAIL_ADDRESS: $$cap_APP_SYSTEM_EMAIL_ADDRESS
            _APP_SYSTEM_SECURITY_EMAIL_ADDRESS: $$cap_APP_SYSTEM_SECURITY_EMAIL_ADDRESS
            _APP_SYSTEM_RESPONSE_FORMAT: $$cap_APP_SYSTEM_RESPONSE_FORMAT
            _APP_OPTIONS_ABUSE: $$cap_APP_OPTIONS_ABUSE
            _APP_OPTIONS_FORCE_HTTPS: $$cap_APP_OPTIONS_FORCE_HTTPS
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_DOMAIN: $$cap_APP_DOMAIN_NAME
            _APP_DOMAIN_TARGET: $$cap_APP_DOMAIN_TARGET
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_SMTP_HOST: $$cap_APP_SMTP_HOST
            _APP_SMTP_PORT: $$cap_APP_SMTP_PORT
            _APP_SMTP_SECURE: $$cap_APP_SMTP_SECURE
            _APP_SMTP_USERNAME: $$cap_APP_SMTP_USERNAME
            _APP_SMTP_PASSWORD: $$cap_APP_SMTP_PASSWORD
            _APP_USAGE_STATS: $$cap_APP_USAGE_STATS
            _APP_INFLUXDB_HOST: srv-captain--$$cap_appname-influxdb
            _APP_INFLUXDB_PORT: $$cap_APP_INFLUXDB_PORT
            _APP_STORAGE_LIMIT: $$cap_APP_STORAGE_LIMIT
            _APP_STORAGE_PREVIEW_LIMIT: $$cap_APP_STORAGE_PREVIEW_LIMIT
            _APP_STORAGE_ANTIVIRUS: $$cap_APP_STORAGE_ANTIVIRUS_ENABLED
            _APP_STORAGE_ANTIVIRUS_HOST: $$cap_APP_STORAGE_ANTIVIRUS_HOST
            _APP_STORAGE_ANTIVIRUS_PORT: $$cap_APP_STORAGE_ANTIVIRUS_PORT
            _APP_STORAGE_DEVICE: $$cap_APP_STORAGE_DEVICE
            _APP_STORAGE_S3_ACCESS_KEY: $$cap_APP_STORAGE_S3_ACCESS_KEY
            _APP_STORAGE_S3_SECRET: $$cap_APP_STORAGE_S3_SECRET
            _APP_STORAGE_S3_REGION: $$cap_APP_STORAGE_S3_REGION
            _APP_STORAGE_S3_BUCKET: $$cap_APP_STORAGE_S3_BUCKET
            _APP_STORAGE_DO_SPACES_ACCESS_KEY: $$cap_APP_STORAGE_DO_SPACES_ACCESS_KEY
            _APP_STORAGE_DO_SPACES_SECRET: $$cap_APP_STORAGE_DO_SPACES_SECRET
            _APP_STORAGE_DO_SPACES_REGION: $$cap_APP_STORAGE_DO_SPACES_REGION
            _APP_STORAGE_DO_SPACES_BUCKET: $$cap_APP_STORAGE_DO_SPACES_BUCKET
            _APP_STORAGE_BACKBLAZE_ACCESS_KEY: $$cap_APP_STORAGE_BACKBLAZE_ACCESS_KEY
            _APP_STORAGE_BACKBLAZE_SECRET: $$cap_APP_STORAGE_BACKBLAZE_SECRET
            _APP_STORAGE_BACKBLAZE_REGION: $$cap_APP_STORAGE_BACKBLAZE_REGION
            _APP_STORAGE_BACKBLAZE_BUCKET: $$cap_APP_STORAGE_BACKBLAZE_BUCKET
            _APP_STORAGE_LINODE_ACCESS_KEY: $$cap_APP_STORAGE_LINODE_ACCESS_KEY
            _APP_STORAGE_LINODE_SECRET: $$cap_APP_STORAGE_LINODE_SECRET
            _APP_STORAGE_LINODE_REGION: $$cap_APP_STORAGE_LINODE_REGION
            _APP_STORAGE_LINODE_BUCKET: $$cap_APP_STORAGE_LINODE_BUCKET
            _APP_STORAGE_WASABI_ACCESS_KEY: $$cap_APP_STORAGE_WASABI_ACCESS_KEY
            _APP_STORAGE_WASABI_SECRET: $$cap_APP_STORAGE_WASABI_SECRET
            _APP_STORAGE_WASABI_REGION: $$cap_APP_STORAGE_WASABI_REGION
            _APP_STORAGE_WASABI_BUCKET: $$cap_APP_STORAGE_WASABI_BUCKET
            _APP_FUNCTIONS_SIZE_LIMIT: $$cap_APP_FUNCTIONS_SIZE_LIMIT
            _APP_FUNCTIONS_TIMEOUT: $$cap_APP_FUNCTIONS_TIMEOUT
            _APP_FUNCTIONS_BUILD_TIMEOUT: $$cap_APP_FUNCTIONS_BUILD_TIMEOUT
            _APP_FUNCTIONS_CONTAINERS: $$cap_APP_FUNCTIONS_CONTAINERS
            _APP_FUNCTIONS_CPUS: $$cap_APP_FUNCTIONS_CPUS
            _APP_FUNCTIONS_MEMORY: $$cap_APP_FUNCTIONS_MEMORY_ALLOCATED
            _APP_FUNCTIONS_MEMORY_SWAP: $$cap_APP_FUNCTIONS_MEMORY_SWAP
            _APP_FUNCTIONS_RUNTIMES: $$cap_APP_FUNCTIONS_RUNTIMES
            _APP_EXECUTOR_SECRET: $$cap_APP_EXECUTOR_SECRET
            _APP_EXECUTOR_HOST: http://srv-captain--$$cap_appname-executor/v1
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG
            _APP_STATSD_HOST: srv-captain--$$cap_appname-telegraf
            _APP_STATSD_PORT: $$cap_APP_STATSD_PORT
            _APP_MAINTENANCE_INTERVAL: $$cap_APP_MAINTENANCE_INTERVAL
            _APP_MAINTENANCE_RETENTION_EXECUTION: $$cap_APP_MAINTENANCE_RETENTION_EXECUTION
            _APP_MAINTENANCE_RETENTION_CACHE: $$cap_APP_MAINTENANCE_RETENTION_CACHE
            _APP_MAINTENANCE_RETENTION_ABUSE: $$cap_APP_MAINTENANCE_RETENTION_ABUSE
            _APP_MAINTENANCE_RETENTION_AUDIT: $$cap_APP_MAINTENANCE_RETENTION_AUDIT
            _APP_SMS_PROVIDER: $$cap_APP_SMS_PROVIDER
            _APP_SMS_FROM: $$cap_APP_SMS_FROM
            _APP_GRAPHQL_MAX_BATCH_SIZE: $$cap_APP_GRAPHQL_MAX_BATCH_SIZE
            _APP_GRAPHQL_MAX_COMPLEXITY: $$cap_APP_GRAPHQL_MAX_COMPLEXITY
            _APP_GRAPHQL_MAX_DEPTH: $$cap_APP_GRAPHQL_MAX_DEPTH

    $$cap_appname-realtime:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["realtime"]
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_WORKER_PER_CORE: $$cap_APP_WORKER_PER_CORE
            _APP_OPTIONS_ABUSE: $$cap_APP_OPTIONS_ABUSE
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_USAGE_STATS: $$cap_APP_USAGE_STATS
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-executor:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["executor"]
        depends_on:
            - $$cap_appname
            - $$cap_appname-redis
            - $$cap_appname-mariadb
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
            - $$cap_appname-functions:/storage/functions
            - $$cap_appname-builds:/storage/builds
            - /tmp:/tmp
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_VERSION: $$cap_APP_VERSION
            _APP_FUNCTIONS_TIMEOUT: $$cap_APP_FUNCTIONS_TIMEOUT
            _APP_FUNCTIONS_BUILD_TIMEOUT: $$cap_APP_FUNCTIONS_BUILD_TIMEOUT
            _APP_FUNCTIONS_CONTAINERS: $$cap_APP_FUNCTIONS_CONTAINERS
            _APP_FUNCTIONS_RUNTIMES: $$cap_APP_FUNCTIONS_RUNTIMES
            _APP_FUNCTIONS_CPUS: $$cap_APP_FUNCTIONS_CPUS
            _APP_FUNCTIONS_MEMORY: $$cap_APP_FUNCTIONS_MEMORY_ALLOCATED
            _APP_FUNCTIONS_MEMORY_SWAP: $$cap_APP_FUNCTIONS_MEMORY_SWAP
            _APP_FUNCTIONS_INACTIVE_THRESHOLD: $$cap_APP_FUNCTIONS_INACTIVE_THRESHOLD
            _APP_EXECUTOR_SECRET: $$cap_APP_EXECUTOR_SECRET
            OPEN_RUNTIMES_NETWORK: captain-overlay-network
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG
            _APP_STORAGE_DEVICE: $$cap_APP_STORAGE_DEVICE
            _APP_STORAGE_S3_ACCESS_KEY: $$cap_APP_STORAGE_S3_ACCESS_KEY
            _APP_STORAGE_S3_SECRET: $$cap_APP_STORAGE_S3_SECRET
            _APP_STORAGE_S3_REGION: $$cap_APP_STORAGE_S3_REGION
            _APP_STORAGE_S3_BUCKET: $$cap_APP_STORAGE_S3_BUCKET
            _APP_STORAGE_DO_SPACES_ACCESS_KEY: $$cap_APP_STORAGE_DO_SPACES_ACCESS_KEY
            _APP_STORAGE_DO_SPACES_SECRET: $$cap_APP_STORAGE_DO_SPACES_SECRET
            _APP_STORAGE_DO_SPACES_REGION: $$cap_APP_STORAGE_DO_SPACES_REGION
            _APP_STORAGE_DO_SPACES_BUCKET: $$cap_APP_STORAGE_DO_SPACES_BUCKET
            _APP_STORAGE_BACKBLAZE_ACCESS_KEY: $$cap_APP_STORAGE_BACKBLAZE_ACCESS_KEY
            _APP_STORAGE_BACKBLAZE_SECRET: $$cap_APP_STORAGE_BACKBLAZE_SECRET
            _APP_STORAGE_BACKBLAZE_REGION: $$cap_APP_STORAGE_BACKBLAZE_REGION
            _APP_STORAGE_BACKBLAZE_BUCKET: $$cap_APP_STORAGE_BACKBLAZE_BUCKET
            _APP_STORAGE_LINODE_ACCESS_KEY: $$cap_APP_STORAGE_LINODE_ACCESS_KEY
            _APP_STORAGE_LINODE_SECRET: $$cap_APP_STORAGE_LINODE_SECRET
            _APP_STORAGE_LINODE_REGION: $$cap_APP_STORAGE_LINODE_REGION
            _APP_STORAGE_LINODE_BUCKET: $$cap_APP_STORAGE_LINODE_BUCKET
            _APP_STORAGE_WASABI_ACCESS_KEY: $$cap_APP_STORAGE_WASABI_ACCESS_KEY
            _APP_STORAGE_WASABI_SECRET: $$cap_APP_STORAGE_WASABI_SECRET
            _APP_STORAGE_WASABI_REGION: $$cap_APP_STORAGE_WASABI_REGION
            _APP_STORAGE_WASABI_BUCKET: $$cap_APP_STORAGE_WASABI_BUCKET
            DOCKERHUB_PULL_USERNAME: $$cap_DOCKERHUB_PULL_USERNAME
            DOCKERHUB_PULL_PASSWORD: $$cap_DOCKERHUB_PULL_PASSWORD

    $$cap_appname-worker-databases:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-databases"]
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-worker-builds:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-builds"]
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_EXECUTOR_SECRET: $$cap_APP_EXECUTOR_SECRET
            _APP_EXECUTOR_HOST: http://srv-captain--$$cap_appname-executor/v1
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-worker-audits:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-audits"]
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-worker-webhooks:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-webhooks"]
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_SYSTEM_SECURITY_EMAIL_ADDRESS: $$cap_APP_SYSTEM_SECURITY_EMAIL_ADDRESS
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-worker-deletes:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-deletes"]
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
        volumes:
            - $$cap_appname-uploads:/storage/uploads
            - $$cap_appname-cache:/storage/cache
            - $$cap_appname-functions:/storage/functions
            - $$cap_appname-builds:/storage/builds
            - $$cap_appname-certificates:/storage/certificates
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_STORAGE_DEVICE: $$cap_APP_STORAGE_DEVICE
            _APP_STORAGE_S3_ACCESS_KEY: $$cap_APP_STORAGE_S3_ACCESS_KEY
            _APP_STORAGE_S3_SECRET: $$cap_APP_STORAGE_S3_SECRET
            _APP_STORAGE_S3_REGION: $$cap_APP_STORAGE_S3_REGION
            _APP_STORAGE_S3_BUCKET: $$cap_APP_STORAGE_S3_BUCKET
            _APP_STORAGE_DO_SPACES_ACCESS_KEY: $$cap_APP_STORAGE_DO_SPACES_ACCESS_KEY
            _APP_STORAGE_DO_SPACES_SECRET: $$cap_APP_STORAGE_DO_SPACES_SECRET
            _APP_STORAGE_DO_SPACES_REGION: $$cap_APP_STORAGE_DO_SPACES_REGION
            _APP_STORAGE_DO_SPACES_BUCKET: $$cap_APP_STORAGE_DO_SPACES_BUCKET
            _APP_STORAGE_BACKBLAZE_ACCESS_KEY: $$cap_APP_STORAGE_BACKBLAZE_ACCESS_KEY
            _APP_STORAGE_BACKBLAZE_SECRET: $$cap_APP_STORAGE_BACKBLAZE_SECRET
            _APP_STORAGE_BACKBLAZE_REGION: $$cap_APP_STORAGE_BACKBLAZE_REGION
            _APP_STORAGE_BACKBLAZE_BUCKET: $$cap_APP_STORAGE_BACKBLAZE_BUCKET
            _APP_STORAGE_LINODE_ACCESS_KEY: $$cap_APP_STORAGE_LINODE_ACCESS_KEY
            _APP_STORAGE_LINODE_SECRET: $$cap_APP_STORAGE_LINODE_SECRET
            _APP_STORAGE_LINODE_REGION: $$cap_APP_STORAGE_LINODE_REGION
            _APP_STORAGE_LINODE_BUCKET: $$cap_APP_STORAGE_LINODE_BUCKET
            _APP_STORAGE_WASABI_ACCESS_KEY: $$cap_APP_STORAGE_WASABI_ACCESS_KEY
            _APP_STORAGE_WASABI_SECRET: $$cap_APP_STORAGE_WASABI_SECRET
            _APP_STORAGE_WASABI_REGION: $$cap_APP_STORAGE_WASABI_REGION
            _APP_STORAGE_WASABI_BUCKET: $$cap_APP_STORAGE_WASABI_BUCKET
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG
            _APP_EXECUTOR_SECRET: $$cap_APP_EXECUTOR_SECRET
            _APP_EXECUTOR_HOST: http://srv-captain--$$cap_appname-executor/v1

    $$cap_appname-worker-functions:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-functions"]
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
            - $$cap_appname-executor
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_FUNCTIONS_TIMEOUT: $$cap_APP_FUNCTIONS_TIMEOUT
            _APP_EXECUTOR_SECRET: $$cap_APP_EXECUTOR_SECRET
            _APP_EXECUTOR_HOST: http://srv-captain--$$cap_appname-executor/v1
            _APP_USAGE_STATS: $$cap_APP_USAGE_STATS
            DOCKERHUB_PULL_USERNAME: $$cap_DOCKERHUB_PULL_USERNAME
            DOCKERHUB_PULL_PASSWORD: $$cap_DOCKERHUB_PULL_PASSWORD

    $$cap_appname-worker-mails:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-mails"]
        depends_on:
            - $$cap_appname-redis
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_SYSTEM_EMAIL_NAME: $$cap_APP_SYSTEM_EMAIL_NAME
            _APP_SYSTEM_EMAIL_ADDRESS: $$cap_APP_SYSTEM_EMAIL_ADDRESS
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_SMTP_HOST: $$cap_APP_SMTP_HOST
            _APP_SMTP_PORT: $$cap_APP_SMTP_PORT
            _APP_SMTP_SECURE: $$cap_APP_SMTP_SECURE
            _APP_SMTP_USERNAME: $$cap_APP_SMTP_USERNAME
            _APP_SMTP_PASSWORD: $$cap_APP_SMTP_PASSWORD
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-worker-messaging:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-messaging"]
        depends_on:
            - $$cap_appname-redis
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_SMS_PROVIDER: $$cap_APP_SMS_PROVIDER
            _APP_SMS_FROM: $$cap_APP_SMS_FROM
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-worker-certificates:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["worker-certificates"]
        depends_on:
            - $$cap_appname-redis
            - $$cap_appname-mariadb
        volumes:
            - $$cap_appname-config:/storage/config
            - $$cap_appname-certificates:/storage/certificates
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_DOMAIN: $$cap_APP_DOMAIN_NAME
            _APP_DOMAIN_TARGET: $$cap_APP_DOMAIN_TARGET
            _APP_SYSTEM_SECURITY_EMAIL_ADDRESS: $$cap_APP_SYSTEM_SECURITY_EMAIL_ADDRESS
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-maintenance:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["maintenance"]
        depends_on:
            - $$cap_appname-redis
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_DOMAIN: $$cap_APP_DOMAIN_NAME
            _APP_DOMAIN_TARGET: $$cap_APP_DOMAIN_TARGET
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_MAINTENANCE_INTERVAL: $$cap_APP_MAINTENANCE_INTERVAL
            _APP_MAINTENANCE_RETENTION_EXECUTION: $$cap_APP_MAINTENANCE_RETENTION_EXECUTION
            _APP_MAINTENANCE_RETENTION_CACHE: $$cap_APP_MAINTENANCE_RETENTION_CACHE
            _APP_MAINTENANCE_RETENTION_ABUSE: $$cap_APP_MAINTENANCE_RETENTION_ABUSE
            _APP_MAINTENANCE_RETENTION_AUDIT: $$cap_APP_MAINTENANCE_RETENTION_AUDIT

    $$cap_appname-usage-timeseries:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["usage", "--type", "timeseries"]
        depends_on:
            - $$cap_appname-influxdb
            - $$cap_appname-mariadb
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_INFLUXDB_HOST: srv-captain--$$cap_appname-influxdb
            _APP_INFLUXDB_PORT: $$cap_APP_INFLUXDB_PORT
            _APP_USAGE_TIMESERIES_INTERVAL: $$cap_APP_USAGE_TIMESERIES_INTERVAL
            _APP_USAGE_DATABASE_INTERVAL: $$cap_APP_USAGE_DATABASE_INTERVAL
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-usage-database:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["usage", "--type", "database"]
        depends_on:
            - $$cap_appname-influxdb
            - $$cap_appname-mariadb
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_OPENSSL_KEY_V1: $$cap_APP_OPENSSL_KEY_V1
            _APP_DB_HOST: srv-captain--$$cap_appname-mariadb
            _APP_DB_PORT: $$cap_APP_DB_PORT
            _APP_DB_SCHEMA: $$cap_APP_DB_SCHEMA
            _APP_DB_USER: $$cap_APP_DB_USER
            _APP_DB_PASS: $$cap_APP_DB_PASS
            _APP_INFLUXDB_HOST: srv-captain--$$cap_appname-influxdb
            _APP_INFLUXDB_PORT: $$cap_APP_INFLUXDB_PORT
            _APP_USAGE_TIMESERIES_INTERVAL: $$cap_APP_USAGE_TIMESERIES_INTERVAL
            _APP_USAGE_DATABASE_INTERVAL: $$cap_APP_USAGE_DATABASE_INTERVAL
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS
            _APP_LOGGING_PROVIDER: $$cap_APP_LOGGING_PROVIDER
            _APP_LOGGING_CONFIG: $$cap_APP_LOGGING_CONFIG

    $$cap_appname-schedule:
        caproverExtra:
            notExposeAsWebApp: 'true'
            dockerfileLines:
                - FROM appwrite/appwrite:$$cap_APP_VERSION
                - ENTRYPOINT ["schedule"]
        depends_on:
            - $$cap_appname-redis
        environment:
            _APP_ENV: $$cap_APP_ENV
            _APP_REDIS_HOST: srv-captain--$$cap_appname-redis
            _APP_REDIS_PORT: $$cap_APP_REDIS_PORT
            _APP_REDIS_USER: $$cap_APP_REDIS_USER
            _APP_REDIS_PASS: $$cap_APP_REDIS_PASS

caproverOneClickApp:
    displayName: Appwrite
    description: Secure Backend Server for Web, Mobile & Flutter Developers.
    isOfficial: true
    documentation: https://appwrite.io/docs
    instructions:
        start: |-
            Appwrite is a self-hosted solution that provides developers with a set of easy-to-use and integrate REST APIs to manage their core backend needs.
            Description of all available environment variables: https://appwrite.io/docs/environment-variables
        end: |-
            Appwrite has been successfully deployed!
            Please change the following settings before using the service:
            1. Go to the settings for $$cap_appname
            2. Enable "Websocket Support"
            3. Click on "Edit Default Nginx Configurations" and paste the following content before the last closing bracket "}":
                ```
                location /v1/realtime {
                    proxy_set_header Upgrade $http_upgrade;
                    proxy_set_header Connection "upgrade";
                    proxy_set_header X-Real-IP $remote_addr;
                    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                    proxy_set_header X-Forwarded-Proto $scheme;
                    proxy_set_header Host $host;
                    proxy_set_header X-Forwarded-Host $host;
                    proxy_set_header X-Forwarded-Port $server_port;
                    proxy_pass http://srv-captain--$$cap_appname-realtime;
                    proxy_http_version 1.1;
                    proxy_connect_timeout 7d;
                    proxy_send_timeout 7d;
                    proxy_read_timeout 7d;
                }
                ```
            Now you can access Appwrite at http://$$cap_appname.$$cap_root_domain
    variables:
        - label: Version Tag
          id: $$cap_APP_VERSION
          description: Check out their valid tags at https://hub.docker.com/r/appwrite/appwrite/tags
          defaultValue: '1.2.0'
          validRegex: "/^([^\\s^\\/])+$/"
        - label: General | _APP_ENV
          id: $$cap_APP_ENV
          description: Set your server running environment.
          defaultValue: production
          validRegex: /^(production|development)$/
        - label: General | _APP_LOCALE
          id: $$cap_APP_LOCALE
          description: Set your Appwrite's locale. By default, the locale is set to 'en'.
          defaultValue: en
          validRegex: /^([^\s^\/])+$/
        - label: General | _APP_OPTIONS_ABUSE
          id: $$cap_APP_OPTIONS_ABUSE
          description: Allows you to disable abuse checks and API rate limiting. By default, set to 'enabled'. To cancel the abuse checking, set to 'disabled'. It is not recommended to disable this check-in a production environment.
          defaultValue: 'enabled'
          validRegex: /^(enabled|disabled)$/
        - label: General | _APP_OPTIONS_FORCE_HTTPS
          id: $$cap_APP_OPTIONS_FORCE_HTTPS
          description: Allows you to force HTTPS connection to your API. This feature redirects any HTTP call to HTTPS and adds the 'Strict-Transport-Security' header to all HTTP responses.
          defaultValue: 'disabled'
          validRegex: /^(enabled|disabled)$/
        - label: General | _APP_OPENSSL_KEY_V1
          id: $$cap_APP_OPENSSL_KEY_V1
          description: This is your server private secret key that is used to encrypt all sensitive data on your server. Appwrite server encrypts all secret data on your server like webhooks, HTTP passwords, user sessions, and storage files. Keep it a secret and have a backup for it.
          defaultValue: $$cap_gen_random_hex(256)
          validRegex: /^([^\s^\/])+$/
        - label: General | _APP_DOMAIN
          id: $$cap_APP_DOMAIN_NAME
          description: Your Appwrite domain address. When setting a public suffix domain, Appwrite will attempt to issue a valid SSL certificate automatically. When used with a dev domain, Appwrite will assign a self-signed SSL certificate. The default value is 'localhost'.
          defaultValue: localhost
          validRegex: /^([^\s^\/])+$/
        - label: General | _APP_DOMAIN_TARGET
          id: $$cap_APP_DOMAIN_TARGET
          description: A DNS A record hostname to serve as a CNAME target for your Appwrite custom domains. You can use the same value as used for the Appwrite '_APP_DOMAIN' variable. The default value is 'localhost'.
          defaultValue: localhost
          validRegex: /^([^\s^\/])+$/
        - label: General | _APP_CONSOLE_WHITELIST_ROOT
          id: $$cap_APP_CONSOLE_WHITELIST_ROOT
          description: This option allows you to disable the creation of new users on the Appwrite console. When enabled only 1 user will be able to use the registration form. New users can be added by inviting them to your project. By default this option is enabled.
          defaultValue: 'enabled'
          validRegex: /^(enabled|disabled)$/
        - label: General | _APP_CONSOLE_WHITELIST_EMAILS
          id: $$cap_APP_CONSOLE_WHITELIST_EMAILS
          description: This option allows you to limit creation of new users on the Appwrite console. This option is very useful for small teams or sole developers. To enable it, pass a list of allowed email addresses separated by a comma.
        - label: General | _APP_CONSOLE_WHITELIST_IPS
          id: $$cap_APP_CONSOLE_WHITELIST_IPS
          description: This last option allows you to limit creation of users in Appwrite console for users sharing the same set of IP addresses. This option is very useful for team working with a VPN service or a company IP.\n\nTo enable/activate this option, pass a list of allowed IP addresses separated by a comma.
        - label: General | _APP_SYSTEM_EMAIL_NAME
          id: $$cap_APP_SYSTEM_EMAIL_NAME
          description: |-
              This is the sender name value that will appear on email messages sent to developers from the Appwrite console. You can use url encoded strings for spaces and special chars.
          defaultValue: Appwrite
          validRegex: /^([^\s^\/])+$/
        - label: General | _APP_SYSTEM_EMAIL_ADDRESS
          id: $$cap_APP_SYSTEM_EMAIL_ADDRESS
          description: This is the sender email address that will appear on email messages sent to developers from the Appwrite console. You should choose an email address that is allowed to be used from your SMTP server to avoid the server email ending in the users' SPAM folders.
          defaultValue: [email protected]
          validRegex: /^([^\s^\/])+$/
        - label: General | _APP_SYSTEM_RESPONSE_FORMAT
          id: $$cap_APP_SYSTEM_RESPONSE_FORMAT
          description: Use this environment variable to set the default Appwrite HTTP response format to support an older version of Appwrite. This option is useful to overcome breaking changes between versions. You can also use the X-Appwrite-Response-Format HTTP request header to overwrite the response for a specific request. This variable accepts any valid Appwrite version. To use the current version format, leave the value of the variable empty.
        - label: General | _APP_SYSTEM_SECURITY_EMAIL_ADDRESS
          id: $$cap_APP_SYSTEM_SECURITY_EMAIL_ADDRESS
          description: This is the email address used to issue SSL certificates for custom domains or the user agent in your webhooks payload.
          defaultValue: [email protected]
          validRegex: /^([^\s^\/])+$/
        - label: General | _APP_USAGE_STATS
          id: $$cap_APP_USAGE_STATS
          description: This variable allows you to disable the collection and displaying of usage stats. This value is set to 'enabled' by default, to disable the usage stats set the value to 'disabled'. When disabled, it's recommended to turn off the Worker Usage, Influxdb and Telegraf containers for better resource usage.
          defaultValue: 'enabled'
          validRegex: /^(enabled|disabled)$/
        - label: General | _APP_LOGGING_PROVIDER
          id: $$cap_APP_LOGGING_PROVIDER
          description: This variable allows you to enable logging errors to 3rd party providers. This value is empty by default, to enable the logger set the value to one of 'sentry', 'raygun', 'appsignal', 'logowl'
        - label: General | _APP_LOGGING_CONFIG
          description: This variable configures authentication to 3rd party error logging providers. If using Sentry, this should be 'SENTRY_API_KEY;SENTRY_APP_ID'. If using Raygun, this should be Raygun API key. If using AppSignal, this should be AppSignal API key. If using LogOwl, this should be LogOwl Service Ticket.
          id: $$cap_APP_LOGGING_CONFIG
        - label: General | _APP_USAGE_TIMESERIES_INTERVAL
          id: $$cap_APP_USAGE_TIMESERIES_INTERVAL
          description: Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats and syncing it to mariadb from InfluxDB. The default value is 30 seconds.
          defaultValue: 30
          validRegex: /.{1,}/
        - label: General | _APP_USAGE_DATABASE_INTERVAL
          id: $$cap_APP_USAGE_DATABASE_INTERVAL
          description: Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats from data in Appwrite Database. The default value is 15 minutes.
          defaultValue: 900
          validRegex: /.{1,}/
        - label: General | _APP_WORKER_PER_CORE
          id: $$cap_APP_WORKER_PER_CORE
          description: Internal Worker per core for the API, Realtime and Executor containers. Can be configured to optimize performance.
          defaultValue: 6
          validRegex: /.{1,}/
        - label: Redis | _APP_REDIS_PORT
          id: $$cap_APP_REDIS_PORT
          description: Redis server TCP port.
          defaultValue: 6379
          validRegex: /.{1,}/
        - label: Redis | _APP_REDIS_USER
          id: $$cap_APP_REDIS_USER
          description: Redis server user. This is an optional variable. Default value is an empty string.
        - label: Redis | _APP_REDIS_PASS
          id: $$cap_APP_REDIS_PASS
          description: Redis server password. This is an optional variable. Default value is an empty string.
        - label: MariaDB | _APP_DB_PORT
          id: $$cap_APP_DB_PORT
          description: MariaDB server TCP port.
          defaultValue: 3306
          validRegex: /.{1,}/
        - label: MariaDB | _APP_DB_SCHEMA
          id: $$cap_APP_DB_SCHEMA
          description: MariaDB server database schema.
          defaultValue: appwrite
          validRegex: /^([^\s^\/])+$/
        - label: MariaDB | _APP_DB_USER
          id: $$cap_APP_DB_USER
          description: MariaDB server user name.
          defaultValue: user
          validRegex: /^([^\s^\/])+$/
        - label: MariaDB | _APP_DB_PASS
          id: $$cap_APP_DB_PASS
          description: MariaDB server user password.
          defaultValue: $$cap_gen_random_hex(16)
          validRegex: /^([^\s^\/])+$/
        - label: MariaDB | _APP_DB_ROOT_PASS
          id: $$cap_APP_DB_ROOT_PASS
          description: MariaDB server root password.
          defaultValue: $$cap_gen_random_hex(16)
          validRegex: /^([^\s^\/])+$/
        - label: InfluxDB | _APP_INFLUXDB_PORT
          id: $$cap_APP_INFLUXDB_PORT
          description: InfluxDB server TCP port.
          defaultValue: 8086
          validRegex: /.{1,}/
        - label: StatsD | _APP_STATSD_PORT
          id: $$cap_APP_STATSD_PORT
          description: StatsD server TCP port.
          defaultValue: 8125
          validRegex: /.{1,}/
        - label: SMTP | _APP_SMTP_HOST
          id: $$cap_APP_SMTP_HOST
          description: SMTP server host name address. Use an empty string to disable all mail sending from the server. The default value for this variable is an empty string.
        - label: SMTP | _APP_SMTP_PORT
          id: $$cap_APP_SMTP_PORT
          description: SMTP server TCP port. Empty by default.
        - label: SMTP | _APP_SMTP_SECURE
          id: $$cap_APP_SMTP_SECURE
          description: SMTP secure connection protocol. Empty by default, change to 'tls' if running on a secure connection.
        - label: SMTP | _APP_SMTP_USERNAME
          id: $$cap_APP_SMTP_USERNAME
          description: SMTP server user name. Empty by default.
        - label: SMTP | _APP_SMTP_PASSWORD
          id: $$cap_APP_SMTP_PASSWORD
          description: SMTP server user password. Empty by default.
        - label: Phone | _APP_SMS_PROVIDER
          id: $$cap_APP_SMS_PROVIDER
          description: |-
              Provider used for delivering SMS for Phone authentication. Use the following format: 'sms://[USER]:[SECRET]@[PROVIDER]'. Available providers are twilio, text-magic, telesign, msg91, and vonage.
        - label: Phone | _APP_SMS_FROM
          id: $$cap_APP_SMS_FROM
          description: |-
              Phone number used for sending out messages. Must start with a leading '+' and maximum of 15 digits without spaces (+123456789).
        - label: Storage | _APP_STORAGE_LIMIT
          id: $$cap_APP_STORAGE_LIMIT
          description: Maximum file size allowed for file upload. The default value is 30MB. You should pass your size limit value in bytes.
          defaultValue: 30000000
        - label: Storage | _APP_STORAGE_PREVIEW_LIMIT
          id: $$cap_APP_STORAGE_PREVIEW_LIMIT
          description: Maximum file size allowed for file image preview. The default value is 20MB. You should pass your size limit value in bytes.
          defaultValue: 20000000
        - label: Storage | _APP_STORAGE_ANTIVIRUS
          id: $$cap_APP_STORAGE_ANTIVIRUS_ENABLED
          description: This variable allows you to disable the internal anti-virus scans. This value is set to 'disabled' by default, to enable the scans set the value to 'enabled'. Before enabling, you must add the ClamAV service and depend on it on main Appwrite service.
          defaultValue: 'disabled'
        - label: Storage | _APP_STORAGE_ANTIVIRUS_HOST
          id: $$cap_APP_STORAGE_ANTIVIRUS_HOST
          description: ClamAV server host name address.
          defaultValue: clamav
        - label: Storage | _APP_STORAGE_ANTIVIRUS_PORT
          id: $$cap_APP_STORAGE_ANTIVIRUS_PORT
          description: ClamAV server TCP port.
          defaultValue: 3310
          validRegex: /.{1,}/
        - label: Storage | _APP_STORAGE_DEVICE
          id: $$cap_APP_STORAGE_DEVICE
          description: Select default storage device. The default value is 'Local'. List of supported adapters are 'Local', 'S3', 'DOSpaces', 'Backblaze', 'Linode' and 'Wasabi'.
          defaultValue: Local
          validRegex: /^([^\s^\/])+$/
        - label: Storage | _APP_STORAGE_S3_ACCESS_KEY
          id: $$cap_APP_STORAGE_S3_ACCESS_KEY
          description: AWS S3 storage access key. Required when the storage adapter is set to S3. You can get your access key from your AWS console.
        - label: Storage | _APP_STORAGE_S3_SECRET
          id: $$cap_APP_STORAGE_S3_SECRET
          description: AWS S3 storage secret key. Required when the storage adapter is set to S3. You can get your secret key from your AWS console.
        - label: Storage | _APP_STORAGE_S3_REGION
          id: $$cap_APP_STORAGE_S3_REGION
          description: AWS S3 storage region. Required when storage adapter is set to S3. You can find your region info for your bucket from AWS console.
          defaultValue: us-east-1
        - label: Storage | _APP_STORAGE_S3_BUCKET
          id: $$cap_APP_STORAGE_S3_BUCKET
          description: AWS S3 storage bucket. Required when storage adapter is set to S3. You can create buckets in your AWS console.
        - label: Storage | _APP_STORAGE_DO_SPACES_ACCESS_KEY
          id: $$cap_APP_STORAGE_DO_SPACES_ACCESS_KEY
          description: DigitalOcean spaces access key. Required when the storage adapter is set to DOSpaces. You can get your access key from your DigitalOcean console.
        - label: Storage | _APP_STORAGE_DO_SPACES_SECRET
          id: $$cap_APP_STORAGE_DO_SPACES_SECRET
          description: DigitalOcean spaces secret key. Required when the storage adapter is set to DOSpaces. You can get your secret key from your DigitalOcean console.
        - label: Storage | _APP_STORAGE_DO_SPACES_REGION
          id: $$cap_APP_STORAGE_DO_SPACES_REGION
          description: DigitalOcean spaces region. Required when storage adapter is set to DOSpaces. You can find your region info for your space from DigitalOcean console.
          defaultValue: us-east-1
        - label: Storage | _APP_STORAGE_DO_SPACES_BUCKET
          id: $$cap_APP_STORAGE_DO_SPACES_BUCKET
          description: DigitalOcean spaces bucket. Required when storage adapter is set to DOSpaces. You can create spaces in your DigitalOcean console.
        - label: Storage | _APP_STORAGE_BACKBLAZE_ACCESS_KEY
          id: $$cap_APP_STORAGE_BACKBLAZE_ACCESS_KEY
          description: Backblaze access key. Required when the storage adapter is set to Backblaze. Your Backblaze keyID will be your access key. You can get your keyID from your Backblaze console.
        - label: Storage | _APP_STORAGE_BACKBLAZE_SECRET
          id: $$cap_APP_STORAGE_BACKBLAZE_SECRET
          description: Backblaze secret key. Required when the storage adapter is set to Backblaze. Your Backblaze applicationKey will be your secret key. You can get your applicationKey from your Backblaze console.
        - label: Storage | _APP_STORAGE_BACKBLAZE_REGION
          id: $$cap_APP_STORAGE_BACKBLAZE_REGION
          description: Backblaze region. Required when storage adapter is set to Backblaze. You can find your region info from your Backblaze console.
          defaultValue: us-west-004
        - label: Storage | _APP_STORAGE_BACKBLAZE_BUCKET
          id: $$cap_APP_STORAGE_BACKBLAZE_BUCKET
          description: Backblaze bucket. Required when storage adapter is set to Backblaze. You can create your bucket from your Backblaze console.
        - label: Storage | _APP_STORAGE_LINODE_ACCESS_KEY
          id: $$cap_APP_STORAGE_LINODE_ACCESS_KEY
          description: Linode object storage access key. Required when the storage adapter is set to Linode. You can get your access key from your Linode console.
        - label: Storage | _APP_STORAGE_LINODE_SECRET
          id: $$cap_APP_STORAGE_LINODE_SECRET
          description: Linode object storage secret key. Required when the storage adapter is set to Linode. You can get your secret key from your Linode console.
        - label: Storage | _APP_STORAGE_LINODE_REGION
          id: $$cap_APP_STORAGE_LINODE_REGION
          description: Linode object storage region. Required when storage adapter is set to Linode. You can find your region info from your Linode console.
          defaultValue: eu-central-1
        - label: Storage | _APP_STORAGE_LINODE_BUCKET
          id: $$cap_APP_STORAGE_LINODE_BUCKET
          description: Linode object storage bucket. Required when storage adapter is set to Linode. You can create buckets in your Linode console.
        - label: Storage | _APP_STORAGE_WASABI_ACCESS_KEY
          id: $$cap_APP_STORAGE_WASABI_ACCESS_KEY
          description: Wasabi access key. Required when the storage adapter is set to Wasabi. You can get your access key from your Wasabi console.
        - label: Storage | _APP_STORAGE_WASABI_SECRET
          id: $$cap_APP_STORAGE_WASABI_SECRET
          description: Wasabi secret key. Required when the storage adapter is set to Wasabi. You can get your secret key from your Wasabi console.
        - label: Storage | _APP_STORAGE_WASABI_REGION
          id: $$cap_APP_STORAGE_WASABI_REGION
          description: Wasabi region. Required when storage adapter is set to Wasabi. You can find your region info from your Wasabi console.
          defaultValue: eu-central-1
        - label: Storage | _APP_STORAGE_WASABI_BUCKET
          id: $$cap_APP_STORAGE_WASABI_BUCKET
          description: Wasabi bucket. Required when storage adapter is set to Wasabi. You can create buckets in your Wasabi console.
        - label: Functions | _APP_FUNCTIONS_SIZE_LIMIT
          id: $$cap_APP_FUNCTIONS_SIZE_LIMIT
          description: The maximum size deployment in bytes. The default value is 30MB.
          defaultValue: 30000000
          validRegex: /.{1,}/
        - label: Functions | _APP_FUNCTIONS_TIMEOUT
          id: $$cap_APP_FUNCTIONS_TIMEOUT
          description: The maximum number of seconds allowed as a timeout value when creating a new function. The default value is 900 seconds.
          defaultValue: 900
          validRegex: /.{1,}/
        - label: Functions | _APP_FUNCTIONS_BUILD_TIMEOUT
          id: $$cap_APP_FUNCTIONS_BUILD_TIMEOUT
          description: The maximum number of seconds allowed as a timeout value when building a new function. The default value is 900 seconds.
          defaultValue: 900
          validRegex: /.{1,}/
        - label: Functions | _APP_FUNCTIONS_CONTAINERS
          id: $$cap_APP_FUNCTIONS_CONTAINERS
          description: The maximum number of containers Appwrite is allowed to keep alive in the background for function environments. Running containers allow faster execution time as there is no need to recreate each container every time a function gets executed. The default value is 10.
          defaultValue: 10
          validRegex: /.{1,}/
        - label: Functions | _APP_FUNCTIONS_CPUS
          id: $$cap_APP_FUNCTIONS_CPUS
          description: The maximum number of CPU core a single cloud function is allowed to use. Please note that setting a value higher than available cores will result in a function error, which might result in an error. The default value is empty. When it's empty, CPU limit will be disabled.
        - label: Functions | _APP_FUNCTIONS_MEMORY
          id: $$cap_APP_FUNCTIONS_MEMORY_ALLOCATED
          description: The maximum amount of memory a single cloud function is allowed to use in megabytes. The default value is empty. When it's empty, memory limit will be disabled.
        - label: Functions | _APP_FUNCTIONS_MEMORY_SWAP
          id: $$cap_APP_FUNCTIONS_MEMORY_SWAP
          description: The maximum amount of swap memory a single cloud function is allowed to use in megabytes. The default value is empty. When it's empty, swap memory limit will be disabled.
        - label: Functions | _APP_FUNCTIONS_RUNTIMES
          id: $$cap_APP_FUNCTIONS_RUNTIMES
          description: |-
              This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.
              To enable/activate this option, pass a list of allowed environments separated by a comma.
              Currently, supported environments are: node-14.5, node-16.0, node-18.0, php-8.0, php-8.1, ruby-3.0, ruby-3.1, python-3.8, python-3.9, python-3.10, deno-1.21, deno-1.24, dart-2.15, dart-2.16, dart-2.17, dotnet-3.1, dotnet-6.0, java-8.0, java-11.0, java-17.0, java-18.0, swift-5.5, kotlin-1.6, cpp-17.0
          defaultValue: node-18.0
        - label: Functions | _APP_EXECUTOR_SECRET
          id: $$cap_APP_EXECUTOR_SECRET
          description: The secret key used by Appwrite to communicate with the function executor.
          defaultValue: $$cap_gen_random_hex(16)
        - label: Functions | _APP_FUNCTIONS_INACTIVE_THRESHOLD
          id: $$cap_APP_FUNCTIONS_INACTIVE_THRESHOLD
          description: The minimum time a function can be inactive before it's container is shutdown and put to sleep. The default value is 60 seconds
          defaultValue: 60
          validRegex: /.{1,}/
        - label: Functions | DOCKERHUB_PULL_USERNAME
          id: $$cap_DOCKERHUB_PULL_USERNAME
          description: The username for hub.docker.com. This variable is used to pull images from hub.docker.com.
        - label: Functions | DOCKERHUB_PULL_PASSWORD
          id: $$cap_DOCKERHUB_PULL_PASSWORD
          description: The password for hub.docker.com. This variable is used to pull images from hub.docker.com.
        - label: Functions | _APP_MAINTENANCE_INTERVAL
          id: $$cap_APP_MAINTENANCE_INTERVAL
          description: Interval value containing the number of seconds that the Appwrite maintenance process should wait before executing system cleanups and optimizations. The default value is 86400 seconds (1 day).
          defaultValue: 86400
          validRegex: /.{1,}/
        - label: Functions | _APP_MAINTENANCE_RETENTION_CACHE
          id: $$cap_APP_MAINTENANCE_RETENTION_CACHE
          description: The maximum duration (in seconds) upto which to retain cached files. The default value is 2592000 seconds (30 days).
          defaultValue: 2592000
          validRegex: /.{1,}/
        - label: Functions | _APP_MAINTENANCE_RETENTION_EXECUTION
          id: $$cap_APP_MAINTENANCE_RETENTION_EXECUTION
          description: The maximum duration (in seconds) upto which to retain execution logs. The default value is 1209600 seconds (14 days).
          defaultValue: 1209600
          validRegex: /.{1,}/
        - label: Functions | _APP_MAINTENANCE_RETENTION_AUDIT
          id: $$cap_APP_MAINTENANCE_RETENTION_AUDIT
          description: The maximum duration (in seconds) upto which to retain audit logs. The default value is 1209600 seconds (14 days).
          defaultValue: 1209600
          validRegex: /.{1,}/
        - label: Functions | _APP_MAINTENANCE_RETENTION_ABUSE
          id: $$cap_APP_MAINTENANCE_RETENTION_ABUSE
          description: The maximum duration (in seconds) upto which to retain abuse logs. The default value is 86400 seconds (1 day).
          defaultValue: 86400
          validRegex: /.{1,}/
        - label: GraphQL | _APP_GRAPHQL_MAX_BATCH_SIZE
          id: $$cap_APP_GRAPHQL_MAX_BATCH_SIZE
          description: Maximum number of batched queries per request. The default value is 10.
          defaultValue: 10
          validRegex: /.{1,}/
        - label: GraphQL | _APP_GRAPHQL_MAX_COMPLEXITY
          id: $$cap_APP_GRAPHQL_MAX_COMPLEXITY
          description: Maximum complexity of a GraphQL query. One field adds one to query complexity. Lists multiply the complexity by the number of items requested. The default value is 250.
          defaultValue: 250
          validRegex: /.{1,}/
        - label: GraphQL | _APP_GRAPHQL_MAX_DEPTH
          id: $$cap_APP_GRAPHQL_MAX_DEPTH
          description: Maximum depth of a GraphQL query. One nested field level adds one to query depth. The default value is 3.
          defaultValue: 3
          validRegex: /.{1,}/