-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathenv.custom.sample
334 lines (267 loc) · 16.3 KB
/
env.custom.sample
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
#!/bin/sh
###############################################################################
# Image configuration #
###############################################################################
###############################################################################
# Image registries
# CUSTOM_IMAGE_REGISTRY= # Default registry to pull image
# from. Defaults to hub.docker.com/cooghub
#
# Services can have custom image registries by overriding the following
# variables:
#
# CUSTOM_IMAGE_REGISTRY_COOG= # Registry for backoffice coog image
# CUSTOM_IMAGE_REGISTRY_STATIC= # Registry for backoffice static image
###############################################################################
# Image names, should usually not change
#
# Back
# CUSTOM_IMAGE_NAME_COOG= # Defaults to "coog"
# CUSTOM_IMAGE_NAME_STATIC= # Defaults to "coog-static"
# CUSTOM_IMAGE_NAME_UNOCONV= # Defaults to "uwsgi-libreoffice-converter"
# CUSTOM_IMAGE_NAME_PAYBOX= # Defaults to "coog-paybox"
# APIs
# CUSTOM_IMAGE_NAME_API= # Defaults to "coog-api"
# CUSTOM_IMAGE_NAME_API_B2B_CONFIG= # Defaults to "coog-api-b2b-config"
# CUSTOM_IMAGE_NAME_API_IDENTITY_MANAGER= # Defaults to "coog-api-identity-manager"
# CUSTOM_IMAGE_NAME_API_REFERENTIAL= # Defaults to "coog-api-referential"
# CUSTOM_IMAGE_NAME_GATEWAY= # Defaults to "coog-gateway"
# CUSTOM_IMAGE_NAME_WEB= # Defaults to "coog-web"
# CUSTOM_IMAGE_NAME_API_B2C= # Defaults to "coog-api-b2c"
# Front
# CUSTOM_IMAGE_NAME_APP_B2C= # Defaults to "coog-app-b2c"
# CUSTOM_IMAGE_NAME_PORTAL= # Defaults to "coog-b2b"
# B2C
# CUSTOM_IMAGE_NAME_B2C_BACK= # Defaults to "coog-customer-backend"
# CUSTOM_IMAGE_NAME_B2C_FRONT= # Defaults to "coog-customer-frontend"
###############################################################################
# The current images for the project. Usually, they will all have the same
# value, which will be inherited from IMAGE_VERSION_DEFAULT, however in some
# cases it can be necessary to specify custom values.
# IMAGE_VERSION_DEFAULT= # Image version for all images below
# Back
IMAGE_VERSION_COOG= # Image version for coog back with customer specifications
# IMAGE_VERSION_STATIC= # Image version for static
# IMAGE_VERSION_UNOCONV= # Image version for unoconv, default value should be fine
# APIs
# IMAGE_VERSION_API= # Image version for APIs
# IMAGE_VERSION_API_B2B_CONFIG= # Image version for B2B configuration
# IMAGE_VERSION_API_IDENTITY_MANAGER= # Image verison for Identity management
# IMAGE_VERSION_API_REFERENTIAL= # Image version for API referential
# IMAGE_VERSION_GATEWAY= # Image version for Gateways
# IMAGE_VERSION_WEB= # Image version for legacy APIs
# IMAGE_VERSION_API_B2C= # Image for legacy B2C API services
# Front
# IMAGE_VERSION_APP_B2C= # Image for legacy B2C front application
# IMAGE_VERSION_PORTAL= # Image for B2B front application
# B2C - Customer Area
# IMAGE_VERSION_B2C_BACK= # Image for new B2C front application
# IMAGE_VERSION_B2C_FRONT= # Image for new B2C API services (Strapi)
###############################################################################
# Project wide configuration #
###############################################################################
# Name of the compose project, defaults to "coog"
# COMPOSE_PROJECT_NAME= # Project name
# Logging level
# COOG_LOG_LEVEL: # Log level for backoffice components, defaults to warning
# API_LOG_PERIMETER: # Log level for APIs, defaults to *
# Logging configuration, should be a path to a file holding a docker anchor
# named `default-logging`, which will be injected in all services.
# Other possible values are `none` (no logging) and `default` (will use the
# logging configuration at `default_logging_configuration.yml`)
# Default value is `default`
# LOGGING_CONFIGURATION_TEMPLATE=
# Timezone
# CUSTOM_COOG_TIMEZONE= # Timezone, defaults to Europe/Paris
# Filesystem
FILESYSTEM_ROOT= # Root directory where data will be stored
# Custom values. For each of those, the default value will be
# $FILESYSTEM_ROOT/$COMPOSE_PROJECT_NAME/<dedicated_folder>
# CUSTOM_COOG_TMP_VOLUME= # coog_tmp => temporary data
# CUSTOM_COOG_DATA_VOLUME= # coog_data => batchs I/O, edm
# CUSTOM_POSTGRES_DATA_VOLUME= # postgresql_data => backoffice database
# CUSTOM_MONGODB_DATA_VOLUME= # mongodb_data => api database
# CUSTOM_REDIS_DATA_VOLUME= # redis_data => legacy api database
# CUSTOM_B2C_BACKEND_BUILD_VOLUME= # b2c_backend => build data
# CUSTOM_B2C_FRONTEND_BUILD_VOLUME= # b2c_frontend => build data
###############################################################################
# Network configuration #
###############################################################################
# Docker networks configuration, subnets need changing if there are other
# existing docker networks on the system
# CUSTOM_NETWORK_BACKEND_NAME= # Backend network name, defaults to COMPOSE_PROJECT_NAME-coog-back
# CUSTOM_NETWORK_BACKEND_SUBNET= # Backend subnet mask, defaults to 10.0.1.0/24
# CUSTOM_NETWORK_FRONTEND_NAME= # Frontend network name, defaults to COMPOSE_PROJECT_NAME-coog-front
# CUSTOM_NETWORK_FRONTEND_SUBNET= # Frontend subnet mask, defaults to 10.0.2.0/24
# In some cases (development, etc...), we want to be able to plug some services
# to other services that run on the host network.
# Setting this value to "1" will enable referencing the host network in URLs
# (ex: CUSTOM_COOG_INTERNAL_URL) with http://host.docker.internal:8000
# ENABLE_HOST_NETWORK_INTEGRATION=
###############################################################################
# Exposition configuration #
###############################################################################
# The base url for accessing the project, defaults to $COMPOSE_PROJECT_NAME.localhost
# Value can be either an IP address or a domain name
# PROJECT_HOSTNAME=
# Allows to switch to https if the certificates are properly set. Defaults to
# http
# MAIN_URL_SCHEME=
# Traefik configuration location. If modification are needed, it is
# strongly recommended to use a "custom" folder.
# By default, it will automatically create a default configuration in the
# custom folder if it exists, or directly reuse the default/traefik folder
# (which is only fine on development environments)
# TRAEFIK_CONFIGURATION_FOLDER=
###############################################################################
# SFTP configuration #
###############################################################################
# Enable the sftp service for file sharing. This gives access to potentially
# confidential informations, and should be configured with care. Defaults to false,
# set to "true" to enable
# ENABLE_SFTP=
# Configuration for the sftp service
# CUSTOM_SFTP_PORT= Defaults to 2222
# CUSTOM_SFTP_USER= Defaults to coog
# CUSTOM_SFTP_PASSWORD= Defaults to coog
# Filesystem location on host for non-coog related file exchange, if there is a
# use case for it
# CUSTOM_SFTP_VOLUME= Defaults to FILESYSTEM_ROOT/sftp
###############################################################################
# Backoffice Database configuration #
###############################################################################
# Name of the main database. If you change it, you will need to manually create
# a new database in the postgresql instance and trigger its initialization.
# defaults to "coog"
# COOG_MAIN_DATABASE=
# If there are additional backoffice databases to manage (preload, update,
# etc.)
# COOG_EXTRA_DATABASES=
# Database configuration. The default values are for a postgres instance
# running as a container under the "postgres" name
# CUSTOM_POSTGRES_HOST= # host, defaults to "postgres"
# CUSTOM_POSTGRES_PORT= # port, defaults to 5432
# CUSTOM_POSTGRES_USER= # username, defaults to "coog"
# CUSTOM_POSTGRES_PASSWORD= # password, defaults to "coog"
# For some use cases (testing, debugging, etc.), we may want to only start the
# api / front part of the application, and connect to a running Coog instance.
# In that case, setting the following variable should be enough
# CUSTOM_COOG_INTERNAL_URL=
###############################################################################
# API / Front Database configuration #
###############################################################################
# CUSTOM_GATEWAY_MAIN_DATABASE= # main database for gateway, defaults to coog-gateway
# CUSTOM_API_V1_MAIN_DATABASE= # main database for api v1, defaults to coog-api-v1
# CUSTOM_API_V2_MAIN_DATABASE= # main database for api v2, defaults to coog-api-v2
# CUSTOM_IDENTITY_MANAGER_MAIN_DATABASE= # main database for identity manager, defaults to coog-identity-manager
# Access to the main api database. By default assumes a containerized mongo
# under the "mongo" name
# CUSTOM_MONGO_HOST= # host, defaults to "mongo"
# CUSTOM_MONGO_PORT= # port, defaults to 27017
# CUSTOM_MONGO_USER= # user, defaults to "coog"
# CUSTOM_MONGO_PASSWORD= # password, defaults to "coog"
# Controls how much memory will be available / used for caching
# CUSTOM_MONGO_MAX_CACHE_SIZE= # Max size to use for WiredTiger Cache, defaults to 2 (GB)
###############################################################################
# Message Broker configuration #
###############################################################################
# Access to the message broker. Usually will be containerized, there should be
# no reason to actually modify this since the broker is only used for
# non-persistent data, so there is no real gain to using a dedicated server
# CUSTOM_RABBITMQ_HOST= # host, defaults to "rabbitmq"
# CUSTOM_RABBITMQ_PORT= # port, defaults to 5672
# CUSTOM_RABBITMQ_USER= # user, defaults to "guest"
# CUSTOM_RABBITMQ_PASSWORD= # password, defaults to "guest"
# RabbitMQ configuration location. If modification are needed, it is
# strongly recommended to use a "custom" folder.
# CUSTOM_RABBITMQ_FOLDER=
###############################################################################
# Services deployment information #
###############################################################################
# Use this to use services deployed elsewhere, probably only useful for
# development setup
# CUSTOM_COOG_INTERNAL_URL=
# CUSTOM_GATEWAY_EXTERNAL_URL=
# CUSTOM_PORTAL_EXTERNAL_URL=
# Sub routes to deploy services on
# CUSTOM_APP_B2C_SUB_ROUTE= # defaults to: customers/myspace}
# Whitelist for CORS, defaults to MAIN_URL_SCHEME://PROJECT_HOSTNAME
# CORS_WHITELIST=
###############################################################################
# OpenTelemetry configuration #
###############################################################################
# More detailed options may be available service per service
# Enable OpenTelemetry data collection, defaults to 0
# OPEN_TELEMETRY_TRACING_ENABLED=
# Tracing server location, must be set to properly send traces. For a jaeger
# instance, something like http://my.host:4318/v1/traces
# OPEN_TELEMETRY_TRACING_URL=
# Tracing server authentication token, if required
# OPEN_TELEMETRY_TRACING_TOKEN=
# Custom service names
# CUSTOM_OPEN_TELEMETRY_SERVICE_NAME_COOG= defaults to coog-back
# CUSTOM_OPEN_TELEMETRY_SERVICE_NAME_CELERY= defaults to coog-celery
# CUSTOM_OPEN_TELEMETRY_SERVICE_NAME_ADMIN= defaults to coog-admin
# CUSTOM_OPEN_TELEMETRY_SERVICE_NAME_CRON= defaults to coog-cron
# CUSTOM_OPEN_TELEMETRY_SERVICE_NAME_GATEWAY= defaults to coog-gateway
# CUSTOM_OPEN_TELEMETRY_SERVICE_NAME_IDENTITY_MANAGER= defaults to coog-identity-manager
# CUSTOM_OPEN_TELEMETRY_SERVICE_NAME_WEB= defaults to coog-api-v1
# CUSTOM_OPEN_TELEMETRY_SERVICE_NAME_API= defaults to coog-api-v2
###############################################################################
# Backoffice configuration #
###############################################################################
# Number of server processes per container, defaults to 1
# COOG_SERVER_WORKERS=
# Number of celery processes per container, defaults to 1
# COOG_CELERY_WORKERS=
# Queues for main celery process. If not set, all queues will be added
# COOG_CELERY_CUSTOM_QUEUES=
# If set to "1", will enable statistics collection for coog, defaults to 0
# COOG_UWSGI_STATS=
# If set to "1", will enable traceback dumping for running coog processes,
# defaults to 0
# COOG_UWSGI_TRACEBACKER=
# Passphrase to encrypt sensitive informations. It is heavily recommended to
# set one, so that credentials stored in the database cannot be retrieved even
# if it is compromised
# COOG_PASSPHRASE=
###############################################################################
# Front-Office configuration #
###############################################################################
# Backoffice token that will be used by API Gateway to communicate with the
# backoffice. Should be associated to a user with access to all APIs (admin,
# coog_api_user)
COOG_GATEWAY_TOKEN=
# How the API users are allowed to authenticate
# ENABLE_GOOGLE_AUTHENTICATION= # Enable Google SSO, defaults to false
# ENABLE_COOG_AUTHENTICATION= # Enable Coog users login, defaults to True
# ENABLE_COOG_TOKEN_AUTHENTICATION= # Enable Coog login through tokens, detaults to true
# Inter services communication token, used to encrypt communications between
# various services
JWT_ENCRYPTION=
# CUSTOM_JWT_EXPIRATION= # Token validity (seconds), defaults to 3600 (1h)
# CUSTOM_DOCUMENT_TOKEN_SECRET= # Specific token for document exchanges, defaults to JWT_ENCRYPTION
###############################################################################
# B2C configuration #
###############################################################################
# B2C Backend
# URL to access backend API only. Admin panel URL is set during image build (static)
# CUSTOM_B2C_BACKEND_URL=
# B2C Database configuration
# Access to the main database
# CUSTOM_POSTGRES_B2C_DB=
# CUSTOM_POSTGRES_B2C_HOST=
# CUSTOM_POSTGRES_B2C_PORT=
# CUSTOM_POSTGRES_B2C_USER=
# CUSTOM_POSTGRES_B2C_PASSWORD=
# B2C Backend external URL
# Used by Frontend at runtime to request Backend API
# Customize only sub route
# CUSTOM_B2C_BACKEND_SUB_ROUTE=
# or complete route
# CUSTOM_B2C_BACKEND_EXTERNAL_URL=
# B2C Backend internal URL
# Used by Frontend at build time to request Backend GraphQL API
# CUSTOM_B2C_FRONTEND_BUILD_INTERNAL_API_URL=
# B2C Frontend prefix path
# CUSTOM_B2C_FRONT_PATH_PREFIX=