-
Notifications
You must be signed in to change notification settings - Fork 102
/
.env
986 lines (734 loc) · 26.6 KB
/
.env
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
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
###
#
# Environment variables are assigned at different times in docker.
# 3 tags make it possible to distinguish them :
#
# - @install
# - @build
# - @run
#
# The "@deprecated" tag targets a deprecated variable.
#
# For better readability, see url below :
# https://docs.phraseanet.com/4.1/en/EnvironnementVariables.html
#
# --- Phraseanet stack composition -------------------------------------------------------------------------------------
# Stack composition use "COMPOSE_FILES" and "COMPOSE_PROFILES" variables. Use it
# to adapt the stack in accordance with your needs.
#
# 1/ "COMPOSE_FILE" value define docker-compose files to include. See available
# files list below :
# - "docker-compose.yml" : Services Nginx, Phraseanet, workers,
# scheduler
# - "docker-compose.datastores.yml" : All data storage services required by
# Phraseanet except for files storage.
# - "docker-compose.tools.yml" : Dev and debug tools
# - "docker-compose.override.yml" : For dev only, use the code from hosts,
# activate ide debugger, ports mapping for
# datastores
# - "docker-compose.phrasea.yml" : For integrate this stack in the "traefik" of Phrasea stack
#
#
#
# 2/ "COMPOSE_PROFILES" value define which profiles you want to use
# in docker-compose.
# See available services and worker profiles below:
#
# Profiles service list:
# - "app" : launch Phraseanet and Workers.
# - "setup" : launch a Phraseanet installation and configuration container, this container is launched to perform a default installation and
# each time it is necessary to update the Phraseanet configuration using the env variables
# - "gateway-classic" : launch nginx service.
# - "gateway-traefik" : nginx is launched behind a traefik service, the traefik is include in this stack (todo)
# or Traefik include in Phrasea Stack.
# - "workers" : launch one worker container by kind of Jobs, you can also
# choose to launch only some workers, see worker list below.
# - "worker" : launch one container worker with all jobs run on it.
# - "db" : launch a mariadb container, because this is the primary
# datastore for production usage, use your own service.
# - "elastisearch" : launch a elasticsearch container.
# - "rabbitmq" : launch a rabbitmq container.
# - "redis" : launch a redis container for app cache.
# - "redis-session" : launch a redis container for store fpm session.
# - "builder" : launch the builder container, for dev only.
# - "elk" : launch an elk stack, for dev only.
# - "squid" : reverse proxy for dev only.
# - "mailhog" : for catching all email emit by app for dev.
# - "db-backup" : launch and run a container to cron database backups and backup file's rotation.
#
# Profiles worker list:
# - "assetsInjest"
# - "createRecord"
# - "deleteRecord"
# - "editRecord"
# - "exportMail"
# - "downloadAsync"
# - "exposeUpload"
# - "exportFtp"
# - "mainQueue"
# - "populateIndex"
# - "pullAssets"
# - "recordsActions"
# - "subdefCreation"
# - "subtitle" Not working (fixed in a future version)
# - "validationReminder"
# - "webhook"
# - "writeMetadatas"
# - "shareBasket"
#
# - "scheduler" : legacy task manager. Warning! Use only if your stack
# require using old task.
#
# See [Docker compose profile documentation|https://docs.docker.com/compose/profiles/]
# for more information about docker compose profiles.
#
#
# See below some examples of stack composition:
#
# For development:
# - COMPOSE_FILE=docker-compose.yml:docker-compose.datastores.yml:docker-compose.tools.yml:docker-compose.override.yml
# - COMPOSE_PROFILES=app,setup,db,pma,elasticsearch,redis,redis-session,rabbitmq,workers,mailhog,builder,gateway-classic
#
# For testing with tools:
# - COMPOSE_FILE=docker-compose.yml:docker-compose.datastores.yml:docker-compose.tools.yml
# - COMPOSE_PROFILES=app,setup,db,pma,elasticsearch,rabbitmq,redis,redis-session,worker,workers,mailhog,gateway-classic
#
# For testing with debug and SSL (the traekik is provide by Phrasea stack):
# - COMPOSE_FILE=docker-compose.yml:docker-compose.datastores.yml:docker-compose.tools.yml:docker-compose.under-phrasea.yml
# - COMPOSE_PROFILES=app,setup,gateway-traefik,db,pma,elasticsearch,rabbitmq,redis,redis-session,worker,workers,mailhog
#
# For production (require using your own databases services and SSL):
# - COMPOSE_FILE=docker-compose.yml:docker-compose.datastores.yml:docker-compose.tools.yml:docker-compose.scheduler.yml
# - COMPOSE_PROFILES=app,setup,workers,gateway-traefik
#
# Example with all profiles:
# - COMPOSE_FILE=docker-compose.yml:docker-compose.datastores.yml:docker-compose.tools.yml
# - COMPOSE_PROFILES=app,setup,gateway-classic,db,elasticsearch,redis,redis-session,rabbitmq,pma,mailhog,assetsInjest,createRecord,deleteRecord,editRecord,
# exportMail,downloadAsync,exposeUpload,exportFtp,mainQueue,populateIndex,pullAssets,recordsActions,subdefCreation,
# validationReminder,webhook,writeMetadatas,shareBasket,scheduler,elk,db-backup,phraseanet-saml-sp
#
# Define "docker-compose" files to include.
# @run
COMPOSE_FILE=docker-compose.yml:docker-compose.datastores.yml:docker-compose.tools.yml
# Define which profiles you want to use in "docker-compose".
# @run
COMPOSE_PROFILES=app,setup,gateway-classic,db,elasticsearch,rabbitmq,redis,redis-session,worker,mailhog,db-backup
# --- Phraseanet container settings ------------------------------------------------------------------------------------
# Registry from which you pull docker images.
# Avalaible values:
# - "local" : build and use your images.
# - "alchemyfr" : using predbuild images from Alchemy registry.
#
# @run
PHRASEANET_DOCKER_REGISTRY=local
# Docker images tag.
# @run
PHRASEANET_DOCKER_TAG=4.1.8-rc6
# Stack Name
# An optionnal Name for the stack
# @run
STACK_NAME=
# --- Phraseanet container network settings ------------------------------------------------------------------------------------
# Phrasea network Name, the name of Phrasea network and see by traefik
# @run
PHRASEA_NETWORK_NAME=ps_internal
# @run
PHRASEA_DOMAIN=phrasea.local
# @run
PHRASEA_GATEWAY_IP=172.30.0.1
# @run
PHRASEA_COMPOSE_PROJECT_NAME=ps
# --- Phraseanet container entrypoint settings -------------------------------------------------------------------------
# Do an installation if Phraseanet is not installed.
# Avalaible values: "0" | "1"
# @run
PHRASEANET_INSTALL=1
# Apply they env variables values to config/configuration.yml file.
# Avalaible values: "0" | "1"
# @run
PHRASEANET_SETUP=1
# Play an upgrade.
# Avalaible values: "0" | "1"
# @run
PHRASEANET_UPGRADE=0
# Activate maintenance mode
# show an nginx unavailability mressage
# Avalaible values: "0" | "1" | "2"
# 0 - for no maintenance mode
# 1 - for maintenance mode during setup execution
# 2 - for persisting maintenance mode
# @run
PHRASEANET_MAINTENANCE=0
# Activate restrictions
# restrictions can be based
# on IP and/or password
# configuration exemple :
# GATEWAY_ALLOWED_IPS=10.0.0.1,10.0.1.1
# GATEWAY_DENIED_IPS=172.1.0.1,172.1.0.2
# GATEWAY_USERS="user1:password1,user2:password2"
# @run
GATEWAY_ALLOWED_IPS=
# @run
GATEWAY_DENIED_IPS=
# @run
GATEWAY_USERS=
# https and reverse proxy (on/off)
# set to on in the case : https behind a proxy
# @run
GATEWAY_FASTCGI_HTTPS=off
# Content Security Policy (CSP)
# helps to detect and mitigate some types of attacks, including Cross-Site Scripting (XSS).
# CSP default values are included in the "Gateway" container entrypoint.
# Use GATEWAY_CSP env var if you want to define yours and/or override Gateway CSP values.
# GATEWAY_CSP="default-src 'self' 127.0.0.1 https://sockjs-eu.pusher.com:443 wss://ws-eu.pusher.com https://apiws.carrick-skills.com:8443 https://apiws.carrick-flow.com:8443 https://fonts.gstatic.com *.tiles.mapbox.com https://api.mapbox.com https://events.mapbox.com *.axept.io *.matomo.cloud *.newrelic.com *.nr-data.net https://www.googletagmanager.com *.google-analytics.com *.phrasea.io https://apiws.carrick-flow.com:8443 https://apiws.carrick-skills.com:8443 https://maxcdn.bootstrapcdn.com data: ; script-src 'unsafe-inline' 'unsafe-eval' 'self' https://www.gstatic.com *.alchemyasp.com *.axept.io *.matomo.cloud *.newrelic.com https://www.googletagmanager.com https://apiws.carrick-flow.com:8443 https://apiws.carrick-skills.com:8443 https://maxcdn.bootstrapcdn.com data: blob: ; style-src 'self' 'unsafe-inline' https://fonts.gstatic.com https://fonts.googleapis.com https://www.google.com https://www.gstatic.com https://apiws.carrick-flow.com:8443 https://apiws.carrick-skills.com:8443 https://maxcdn.bootstrapcdn.com ; img-src 'self' data: blob: *.tiles.mapbox.com https://axeptio.imgix.net *.cloudfront.net *.phrasea.io *.amazonaws.com https://apiws.carrick-flow.com:8443 https://apiws.carrick-skills.com:8443 https://maxcdn.bootstrapcdn.com https://www.gnu.org/graphics/ ; object-src 'self'; frame-ancestors 'self'"
# @run
GATEWAY_CSP=
# --- RabbitMQ settings ------------------------------------------------------------------------------------------------
# RabbitMQ user account : create an account in RabbitMQ container and use it
# in Phraseanet configuration.
# @run
RABBITMQ_DEFAULT_USER=alchemy
# RabbitMQ password account.
# @run
RABBITMQ_DEFAULT_PASS=vdh4dpe5Wy3R
# RabbitMQ Http interface management port.
# @run
RABBITMQ_MANAGEMENT_PORT=10811
# rabbit hostname, need also for the name of rabbit database dir to avoid random name after dc down/up
# @run
RABBITMQ_HOSTNAME=rabbit_phraseanet
# --- Gateway settings (nginx) -----------------------------------------------------------------------------------------
# Value applied to "send_timeout", "keepalive_timeout", "client_header_timeout"
# and "client_body_timeout" nginx settings.
# @run
GATEWAY_SEND_TIMEOUT=120
# Timeout for establishing a connection with a proxied server. See [documentation|
# http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_connect_timeout].
# @run
GATEWAY_PROXY_TIMEOUT=120
# Value applied to "fastcgi_connect_timeout", "fastcgi_read_timeout"
# and "fastcgi_send_timeout" nginx settings.
# @run
GATEWAY_FASTCGI_TIMEOUT=300
# --- PHP settings -----------------------------------------------------------------------------------------------------
# Maximum request body size for Php and Nginx. Example "1G"
# @run
MAX_BODY_SIZE=1G
# Maximum Php input var. See [max-input-vars Php documentation|
# https://www.php.net/manual/en/info.configuration.php#ini.max-input-vars].
# @run
MAX_INPUT_VARS=12000
# Maximum Php execution time in second. See [max-execution-time Php documentation|
# https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time].
# @run
MAX_EXECUTION_TIME=120
# Maximum Php input time in second. See [max-input-time Php documentation|
# https://www.php.net/manual/en/info.configuration.php#ini.max-input-time].
# @run
MAX_INPUT_TIME=60
# Php timeout for serving a single request after which the worker process will
# be killed. This option should be used when the "max_execution_time" ini option
# does not stop script execution for some reason. A value of "0" means "off".
# Available units: s(econds)[default], m(inutes), h(ours), or d(ays).
# @run
REQUEST_TERMINATE_TIMEOUT=300s
# Maximum amount of memory a script may consume (128MB)
# http://php.net/memory-limit
FPM_MEMORY_LIMIT=2048M
PHP_CLI_MEMORY_LIMIT=2048M
# Php Opcache status. See [opcache Php documentation|
# https://www.php.net/manual/en/intro.opcache.php].
# Avalaible values: "0" | "1"
# @run
OPCACHE_ENABLED=1
# Php session cache limiter. See [session-cache-limiter Php documentation|
# https://www.php.net/manual/en/function.session-cache-limiter].
# Avalaible values: "off" | "on"
# @run
SESSION_CACHE_LIMITER=off
# Php logging level. See [error-reporting Php documentation|
# https://www.php.net/manual/en/function.error-reporting.php].
# Available values: "alert" | "error" | "warning" | "notice" | "debug"
# @run
PHP_LOG_LEVEL=warning
# PHP Handler used to store/retrieve data.
# http://php.net/session.save-handler
# session handler can be "files" and path must be than
# @run
SESSION_SAVE_HANDLER=redis
# @run
SESSION_SAVE_PATH=tcp://redis-session:6379
# PHP session cookies to be secured
# only works if the application is under ssl protection
# @run
COOKIE_SECURE=false
# FPM
# Choose how the process manager will control the number of child processes.
# Possible Values:
# static - a fixed number (pm.max_children) of child processes;
# dynamic - the number of child processes are set dynamically based on the
# @run
FPM_PM_TYPE=dynamic
# FPM
# The number of child processes to be created when pm is set to 'static' and the
# maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
# @run
FPM_MAXCHILDREN=9
# FPM
# The number of child processes created on startup.
# Note: Used only when pm is set to 'dynamic'
# @run
FPM_STARTSERVERS=3
# FPM
# The desired minimum number of idle server processes.
# Note: Used only when pm is set to 'dynamic'
# Note: Mandatory when pm is set to 'dynamic'
# @run
FPM_MINSPARESERVER=2
# FPM
# The desired maximum number of idle server processes.
# Note: Used only when pm is set to 'dynamic'
# Note: Mandatory when pm is set to 'dynamic'
# @run
FPM_MAXSPARESERVER=4
# FPM
# The number of requests each child process should execute before respawning.
# @run
FPM_MAX_REQUESTS=1000
# --- MySQL settings ---------------------------------------------------------------------------------------------------
# MySQL root password.
# @build
MYSQL_ROOT_PASSWORD=root
# MySQL server host address.
# @build
SERVER_NAME=phraseanet-docker
# MySQL maximum allowed packet.
# Value applied to "max_allowed_packet" MySQL server setting.
# @run
MYSQL_MAX_ALLOWED_PACKET=16M
# Value applied to "max_connection" MySQL server setting.
# @run
MYSQL_MAX_CONNECTION=200
# Enable the slow query log to see queries with especially long duration.
# Value applied to "slow_query_log" MySQL server setting.
# @run
MYSQL_SLOW_QUERY_LOG=0
# Value applied to "long_query_time" MySQL server setting.
# @run
MYSQL_LONG_QUERY_TIME=10
# Cache only tiny result sets, so we can fit more in the query cache.
# Value applied to "query_cache_limit" MySQL server setting.
# @run
MYSQL_QUERY_CACHE_LIMIT=128k
# Value applied to "query_cache_size" MySQL server setting.
# @run
MYSQL_QUERY_CACHE_SIZE=64M
# Value applied to "key_buffer_size" MySQL server setting.
# @run
MYSQL_KEY_BUFFER_SIZE=128M
# --- DB Backup settings ---------------------------------------------------------------------------------------------
# Path where the backuped files will be locally stored
# @run
DB_BACKUP_VOLUME_PATH=./datas
# The database server host
# @run
DB_BACKUP_MYSQL_HOST=db
# The database server user
# @run
DB_BACKUP_MYSQL_USER=root
# The database server pass
# @run
DB_BACKUP_MYSQL_PASS=${MYSQL_ROOT_PASSWORD}
# The backup file's rotation time in days
# @run
DB_BACKUP_MAX_BACKUPS=7
# If set, create a backup when the container starts
# @run
DB_BACKUP_INIT_BACKUP=0
# If set, restores latest backup.
# @run
DB_BACKUP_INIT_RESTORE_LATEST=0
# Every day at 03:00
# @run
#DB_BACKUP_CRON_TIME=0 3 * *
DB_BACKUP_CRON_TIME=
# Make it small
# @run
DB_BACKUP_GZIP_LEVEL=9
# --- Pusher settings --------------------------------------------------------------------------------------
# Pusher settings used when PHRASEANET_DOWNLOAD_ASYNC=true (configuration.yml: download_async / enabled=true)
# pusher key
# @run
PUSHER_AUTH_KEY
# pusher secret
# @run
PUSHER_SECRET
# pusher app_id
# @run
PUSHER_APP_ID
# --- Application cache settings ---------------------------------------------------------------------------------------------------
# Cache setting type can be "redis" or "arraycache"
# @run
PHRASEANET_CACHE_TYPE=redis
# @run
PHRASEANET_CACHE_HOST=redis
# @run
PHRASEANET_CACHE_PORT=6379
# --- Phraseanet general settings --------------------------------------------------------------------------------------
# Variables below are used in the "configuration.yml" file:
# Application title displayed on Phraseanet homepage.
# Available values:
# - "0" : Keep value define configuration.yml
# - "1" : Use PHRASEANET_PROJECT_NAME
#
# @run
ENV_SET_PHRASEANET_PROJECT_NAME=1
# Application title displayed on Phraseanet homepage. Depend on
# "ENV_SET_PHRASEANET_PROJECT_NAME" variable value.
# @run
PHRASEANET_PROJECT_NAME=Phraseanet
# Application static url is made by combining PHRASEANET_SCHEME, PHRASEANET_HOSTNAME and PHRASEANET_APP_PORT
# An non declarative variable is generated for other uses needed for deploiment (helm for exemple)
# Domain name used by traefik in Phrasea stack
# @run
PHRASEANET_HOSTNAME=phraseanet.phrasea.local
# @run
PHRASEANET_SCHEME=http
# @run
PHRASEANET_APP_PORT=8082
# Variables below used to define the first user / email couple :
# Phraseanet root account ID. If this variable is filled in,
# "PHRASEANET_ADMIN_ACCOUNT_PASSWORD" variable value will override
# targeted account ID password each time Phraseanet is started.
# @run
PHRASEANET_ADMIN_ACCOUNT_ID=
# @run
# @run
PHRASEANET_ADMIN_ACCOUNT_PASSWORD=iJRqXU0MwbyJewQLBbra6IWHsWly
# Use Pusher to enable async download.
# @run
PHRASEANET_DOWNLOAD_ASYNC=false
# --- Phraseanet MySQL settings ----------------------------------------------------------------------------------------
# @install
PHRASEANET_DB_HOST=db
# @install
PHRASEANET_DB_PORT=3306
# @install
PHRASEANET_DB_USER=root
# @install
PHRASEANET_DB_PASSWORD=root
# --- Phraseanet database settings -------------------------------------------------------------------------------------
# @install
INSTALL_DB_TEMPLATE=DublinCore
# @install
INSTALL_APPBOX=ab_master
# @install
INSTALL_DATABOX=db_databox1
# --- Phraseanet languages settings ------------------------------------------------------------------------------------
# Available languages (list of language code separated by comma).
# @run
PHRASEANET_AVAILABLE_LANGUAGE=de,en,fr,nl
# Default language code.
# @run
PHRASEANET_DEFAULT_LANGUAGE=en
# --- Phraseanet binaries execution timeouts settings ------------------------------------------------------------------
# @run
PHRASEANET_FFMPEG_TIMEOUT=7200
# @run
PHRASEANET_FFPROBE_TIMEOUT=120
# @run
PHRASEANET_GS_TIMEOUT=120
# @run
PHRASEANET_MP4BOX_TIMEOUT=120
# @run
PHRASEANET_SWFTOOLS_TIMEOUT=120
# @run
PHRASEANET_UNOCON_TIMEOUT=120
# @run
PHRASEANET_EXIFTOOL_TIMEOUT=120
# --- Phraseanet RabbitMQ settings -------------------------------------------------------------------------------------
# @run
PHRASEANET_RABBITMQ_HOST=rabbitmq
# @run
PHRASEANET_RABBITMQ_PORT=5672
# @run
PHRASEANET_RABBITMQ_SSL=false
# @run
PHRASEANET_RABBITMQ_VHOST=/
# @run
PHRASEANET_RABBITMQ_HEARTBEAT=30
# --- Phraseanet Elasticsearch settings -------------------------------------------------------------------------------------
# They env variables are only used during installation process, edit configuration.yml file or use phraseanet admin GUI to modify them
# @install
PHRASEANET_ELASTICSEARCH_HOST=elasticsearch
# @install
PHRASEANET_ELASTICSEARCH_PORT=9200
# @install
PHRASEANET_ELASTICSEARCH_INDEX=null
# @install
PHRASEANET_ELASTICSEARCH_SHARD=3
# @install
PHRASEANET_ELASTICSEARCH_REPLICAS=0
# @install
PHRASEANET_ELASTICSEARCH_MINSCORE=2
# @install
PHRASEANET_ELASTICSEARCH_HIGHLIGHT=true
# @install
PHRASEANET_ELASTICSEARCH_MAXRESULTWINDOW=500000
# @install
PHRASEANET_ELASTICSEARCH_POPULATEORDER=RECORD_ID
# @install
PHRASEANET_ELASTICSEARCH_ACTIVETAB=null
# @install
PHRASEANET_ELASTICSEARCH_FACET_BASE=10
# @install
PHRASEANET_ELASTICSEARCH_FACET_COLLECTION=10
# @install
PHRASEANET_ELASTICSEARCH_FACET_DOCTYPE=10
# @install
PHRASEANET_ELASTICSEARCH_FACET_ORIENTATION=10
# --- Phraseanet network settings --------------------------------------------------------------------------------------
# Enter comma separated list of IP or SUBNETS for variables below:
# @run
PHRASEANET_TRUSTED_PROXIES=
# @run
PHRASEANET_DEBUG_ALLOWED_IP=
# @run
PHRASEANET_SUBNET_IPS=172.32.0.0/16
# --- Phraseanet API settings ------------------------------------------------------------------------------------------
# @run
PHRASEANET_API_ENABLED=true
# @run
PHRASEANET_API_SSL=true
# @run
PHRASEANET_API_AUTH_TOKEN_HEADER_ONLY=false
# --- Phraseanet Mapbox geolocalisation settings -----------------------------------------------------------------------
# @run
PHRASEANET_MAPBOX_ACTIVATE=false
# @run
PHRASEANET_MAPBOX_TOKEN=
# @run
PHRASEANET_MAPBOX_KIND=
# --- Phraseanet mail settings -----------------------------------------------------------------------------------------
# @run
# @run
PHRASEANET_MAIL_OBJECT_PREFIX="phraseanet"
# Phraseanet SMTP settings:
# Available values:
# - "true" : SMTP parameters are set from .env file.
# - "false" : SMTP parameters should be set in GUI.
#
# @run
PHRASEANET_SMTP_ENABLED=true
# @run
PHRASEANET_SMTP_HOST=mailhog
# @run
PHRASEANET_SMTP_PORT=1025
# @run
PHRASEANET_SMTP_AUTH_ENABLED=false
# @run
PHRASEANET_SMTP_SECURE_MODE=null
# @run
PHRASEANET_SMTP_USER=
# @run
PHRASEANET_SMTP_PASSWORD=
# --- Phraseanet Workers and Scheduler settings ------------------------------------------------------------------------
# Define how many process are launched in the "worker" container:
# - "0" : Only one process is launched inside the container with no specializing,
# in this case the scaling needs to be made by the orchestation eg K8S.
# This is the recommended way.
# - "1" : Deploys one phraseanet worker for each kind of job, the parallelime is
# defined by value of envs started by "PHRASEANET_WORKER_XXX"
#
# Eg: For two subdefinitions builded at the same time, set
# "PHRASEANET_WORKER_subdefCreation=2"
# @run
PHRASEANET_EXPLODE_WORKER=1
# When PHRASEANET_EXPLODE_WORKER=1, it define the method for launching
# Phraseanet workers process.
# Available values :
# - "supervisor" : Launch it with supervisor.
# - "" : Launch phraseanet workers with a "bin/console".
#
# Note for old Phraseanet task planner AKA "Phraseanet scheduler": To launch the
# "scheduler" container, add "scheduler" profile to "COMPOSE_PROFILES" env
# var. Launch this container only if you need to use the old Phraseanet tasks.
# @run
PHRASEANET_WORKERS_LAUNCH_METHOD=
# @run
PHRASEANET_WORKER_assetsIngest=1
# @run
PHRASEANET_WORKER_createRecord=2
# @run
PHRASEANET_WORKER_deleteRecord=2
# @run
PHRASEANET_WORKER_editRecord=2
# @run
PHRASEANET_WORKER_exportMail=2
# @run
PHRASEANET_WORKER_downloadAsync=2
# @run
PHRASEANET_WORKER_exposeUpload=2
# @run
PHRASEANET_WORKER_ftp=1
# @run
PHRASEANET_WORKER_mainQueue=3
# @run
PHRASEANET_WORKER_populateIndex=1
# @run
PHRASEANET_WORKER_pullAssets=1
# @run
PHRASEANET_WORKER_recordsActions=1
# @run
PHRASEANET_WORKER_subdefCreation=1
# @run
PHRASEANET_WORKER_subtitle=1
# @run
PHRASEANET_WORKER_validationReminder=1
# @run
PHRASEANET_WORKER_webhook=1
# @run
PHRASEANET_WORKER_writeMetadatas=1
# @run
PHRASEANET_WORKER_shareBasket=1
# --- Phraseanet Locales settings --------------------------------------------------------------------------------------
# @run
LC_MESSAGES=C.UTF-8
# @run
LC_COLLATE=C.UTF-8
# @run
LC_IDENTIFICATION=C.UTF-8
# @run
LANG=C.UTF-8
# @run
LC_MEASUREMENT=C.UTF-8
# @run
LC_CTYPE=C.UTF-8
# @run
LC_TIME=C.UTF-8
# @run
LC_NAME=C.UTF-8
# --- Phraseanet volumes location settings -----------------------------------------------------------------------------
# @run
PHRASEANET_CONFIG_DIR=./config
# @run
PHRASEANET_LOGS_DIR=./logs
# @run
PHRASEANET_DATA_DIR=./datas
# @run
PHRASEANET_DB_DIR=./volumes/db
# @run
PHRASEANET_ELASTICSEARCH_DIR=./volumes/elasticsearch
# @run
PHRASEANET_THUMBNAILS_DIR=./www/thumbnails
# @run
PHRASEANET_CUSTOM_DIR=./www/custom
# @run
PHRASEANET_PLUGINS_DIR=./www/plugins
# @run
PHRASEANET_TMP_DIR=./tmp
# @run
PHRASEANET_CACHE_DIR=./cache
# @run
PHRASEANET_DOWNLOAD_DIR=./datas/download
# @run
PHRASEANET_LAZARET_DIR=./datas/lazaret
# @run
PHRASEANET_CAPTION_DIR=./tmp/caption
# @run
PHRASEANET_WORKER_TMP=./tmp/worker
# --- Phraseanet plugin support settings -------------------------------------------------------------------------------
# @build
PHRASEANET_PLUGINS=
# @build
PHRASEANET_SSH_PRIVATE_KEY=
# --- ImageMagick default policy override setting ----------------------------------------------------------------------
# @run
IMAGEMAGICK_POLICY_VERSION=6
# @run
IMAGEMAGICK_POLICY_WIDTH=16KP
# @run
IMAGEMAGICK_POLICY_HEIGHT=16KP
# @run
IMAGEMAGICK_POLICY_MAP=512MiB
# @run
IMAGEMAGICK_POLICY_MEMORY=256MiB
# @run
IMAGEMAGICK_POLICY_AREA=128MB
# @run
IMAGEMAGICK_POLICY_DISK=1GiB
# @run
IMAGEMAGICK_POLICY_TEMPORARY_PATH=/tmp
# --- New Relic monitoring settings ------------------------------------------------------------------------------------
# Enable (or not) the "New Relic" agent for plateform monitoring.
# @run
NEWRELIC_ENABLED=false
# @run
NEWRELIC_LICENSE_KEY=
# @run
NEWRELIC_APP_NAME=
# --- Blackfire settings -----------------------------------------------------------------------------------------------
# In developpement mode, Enable (or not) the "Blackfire" agent for
# plateform monitoring.
# @run
BLACKFIRE_ENABLED=false
# @run
BLACKFIRE_SERVER_ID=
# @run
BLACKFIRE_SERVER_TOKEN=
# --- Development purpose ----------------------------------------------------------------------------------------------
# See [Phraseanet development-mode documentation|
# https://github.com/alchemy-fr/Phraseanet#development-mode] for more information.
# "PhpMyAdmin" http port mapping.
# @run
PHRASEANET_PHPMYADMIN_PORT=8089
# "Mailhog" http port mapping.
# @run
MAILHOG_GUI_PORT=8025
# "Xdebug" settings:
# @run
XDEBUG_ENABLED=0
# @run
XDEBUG_PROFILER_ENABLED=0
# @run
IDE_KEY=PHPSTORM
# @run
XDEBUG_REMOTE_HOST=172.32.0.1
# @run
PHP_IDE_CONFIG=serverName=docker-server-phraseanet
# For dev or testing export ftp-server
# @run
PHRASEANET_FTP_DIR=./datas/ftp
# For dev proxy squid WIP:
# - PHRASEANET_SQUID_DIR=./volumes/squid
# - PHRASEANET_SQUID_CONF= ./docker/squid/squid.conf
# - PHRASEANET_SQUID_PORT=3128
#
# For dev who don't have SSH_AUTH_SOCK (avoid an empty volume name)
# @run
SSH_AUTH_SOCK=/dev/null
# Kubernet context needs full pod hosname on nginx reverse proxing
# This is need for PHraseanet SAML context on K8S
# @run
PHRASEANET_K8S_NAMESPACE=
#
# SAML Service provider setting
# simplesamlphp as service provider for Phraseanet
# must be associated to a plugin
# on docker-compose staxk add the profile phraseanet-saml-sp
# @run
SAML_ALLOW_DEBUG=true
# @run
SAML_PHRASEANET_HOST=http://127.0.0.1:8082
# @run
SAML_SP_CONFIG_DIR=./saml-config/
# @run
SAML_SP_AUTHSOURCES=
# @run
SAML_SP_CERT_DIR=./saml-cert/
# @run
SAML_IDP_METADATA_CONFIG=
# @run
SAML_IDP_METADATA_LOCAL_CONFIG_DIR=./saml-metadata/