forked from ec-europa/joinup-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.dist
More file actions
152 lines (137 loc) · 5.62 KB
/
.env.dist
File metadata and controls
152 lines (137 loc) · 5.62 KB
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
# Default environment variables for Joinup.
#
# Declaring sensitive data in environment variables is an industry standard, as
# it's a very friendly mechanism for configuring the applications on different
# environments and in continuous integration flows, as well. Depending on the
# development environment or developer practices, the system environment
# variables can be assigned in different ways, most simple is declaring them in
# the `~/.bashrc` or `~/.zshrc` files on Bash respectively Z shells. But some
# prefer to keep them inside the project's directory tree, as they are project
# specific variables. In order to do so, just copy the lines from this file that
# you want to override to an empty file named `.env` and fill in the sensitive
# values. Note that the `.env` file is not under VCS control and should not be
# committed.
#
# The defaults used in this file are designed to work out of the box with our
# Docker environment, to make it as easy as possible for a new contributor to
# start working on Joinup.
#
#
# Example settings for a local development environment
# ----------------------------------------------------
#
# For developers who wish to set up a local development environment which does
# not rely on Docker, here is a list of the variables which typically would need
# to be overridden in the `.env` file:
#
# DRUPAL_BASE_URL=http://localhost:8080 # or maybe http://joinup.local
#
# DRUPAL_DATABASE_HOST=localhost
# DRUPAL_DATABASE_USERNAME=my_db_user
# DRUPAL_DATABASE_PASSWORD=my_db_password
# DRUPAL_HASH_SALT=my_random_40_character_long_hash_salt
#
# SPARQL_HOST=localhost
#
# SOLR_CORE_PUBLISHED_URL=http://localhost:8983/solr
# SOLR_CORE_UNPUBLISHED_URL=http://localhost:8983/solr
#
# REDIS_HOST=localhost
#
# WEBDRIVER_URL=http://localhost:4444/wd/hub
# SIMPLETEST_BASE_URL=http://localhost:8080 # or maybe http://joinup.local
# SIMPLETEST_DB=mysql://my_db_user@localhost:3306/joinup
# SIMPLETEST_SPARQL_DB=sparql://localhost:8890?module=sparql_entity_storage
# MINK_DRIVER_ARGS_WEBDRIVER="['chrome', { 'chromeOptions': { 'w3c': false } }, 'http://localhost:4444/wd/hub']"
# DTT_BASE_URL=http://localhost:8080 # or maybe http://joinup.local
# DTT_API_URL=http://localhost:4444/wd/hub
# DTT_MINK_DRIVER_ARGS="['chrome', null, 'http://localhost:4444/wd/hub']"
# Drupal settings.
DRUPAL_BASE_URL=http://web:8080
# The hash salt is required and needs to be present in the environment or .env.
# Generate a random hash salt with the following command:
# cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9+/' | fold -w ${1:-55} | head -n 1
DRUPAL_HASH_SALT=
# Absolute or relative to project root.
DRUPAL_PRIVATE_FILE_SYSTEM=./private
# Absolute or relative to project root.
DRUPAL_FILE_TEMP_PATH=./tmp
DRUPAL_SYSTEM_LOG_ERROR_LEVEL=verbose
DRUPAL_SITE_PROFILE=joinup
DRUPAL_SITE_NAME=Joinup
DRUPAL_SITE_MAIL=joinup@example.com
DRUPAL_ACCOUNT_NAME=admin
DRUPAL_ACCOUNT_PASSWORD=admin
# Drupal MySQL connection.
DRUPAL_DATABASE_HOST=mysql
DRUPAL_DATABASE_PORT=3306
DRUPAL_DATABASE_USERNAME=root
DRUPAL_DATABASE_PASSWORD=
DRUPAL_DATABASE_NAME=joinup
# SPARQL connection.
SPARQL_HOST=virtuoso
SPARQL_PORT=8890
SPARQL_USER=dba
SPARQL_PASSWORD=dba
SPARQL_PUBLIC_ENDPOINT=https://joinup.ec.europa.eu/sparql/
# Apache Solr endpoints.
SOLR_CORE_PUBLISHED_NAME=drupal_published
SOLR_CORE_PUBLISHED_URL=http://solr:8983/solr
SOLR_CORE_UNPUBLISHED_NAME=drupal_unpublished
SOLR_CORE_UNPUBLISHED_URL=http://solr:8983/solr
# Redis.
REDIS_INTERFACE=Predis
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
# Drush.
DRUSH_VERBOSE=no
# Matomo & OpenEuropa Webtools Analytics.
MATOMO_SITE_ID=1
MATOMO_SITE_URL_HTTP=
MATOMO_SITE_URL_HTTPS=
MATOMO_REPORTING_API_AUTH_TOKEN=0123456789abcdef0123456789abcdef
OE_WEBTOOLS_ANALYTICS_SITE_PATH=joinup.uat.fpfis.tech.ec.europa.eu
OE_WEBTOOLS_ANALYTICS_SITE_INSTANCE=testing
# ASDA connection. This is used to retrieve backups of production data. These
# credentials are only handed out on a need-to-know basis by project management.
ASDA_URL=
ASDA_USER=
ASDA_PASSWORD=
# Testing webdriver.
WEBDRIVER_URL=http://selenium:4444/wd/hub
# Behat artefacts settings.
BEHAT_S3_DIR=
BEHAT_S3_AWS_REGION=
BEHAT_S3_BUCKET=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
# PHPUnit configuration. These environment variables are documented in the
# configuration file (./phpunit.xml).
SIMPLETEST_BASE_URL=http://web:8080
SIMPLETEST_DB=mysql://root@mysql:3306/joinup
SIMPLETEST_SPARQL_DB=sparql://virtuoso:8890?module=sparql_entity_storage
BROWSERTEST_OUTPUT_DIRECTORY=./web/sites/simpletest/browser_output
BROWSERTEST_OUTPUT_BASE_URL=
SYMFONY_DEPRECATIONS_HELPER=99999
MINK_DRIVER_CLASS=
MINK_DRIVER_ARGS=
MINK_DRIVER_ARGS_PHANTOMJS=
MINK_DRIVER_ARGS_WEBDRIVER="[\"chrome\", { \"chromeOptions\": { \"w3c\": false } }, \"http://selenium:4444/wd/hub\"]"
DTT_BASE_URL=http://web:8080
DTT_API_URL=http://selenium:4444/wd/hub
DTT_MINK_DRIVER_ARGS="['chrome', null, 'http://selenium:4444/wd/hub']"
# This environment variable is used as a switch to wake up the containers with
# empty databases (value 'no') or with databases importing data from production.
# Copy this line in .env file and set 'yes' as value if you want to restore the
# production databases.
DOCKER_RESTORE_PRODUCTION=no
# Debugging
# TODO: The following vars were not tested. They were inherited from a previous
# Docker setup. To investigate if we still need them.
#
# XDebug configuration. For Xdebug setup, run this command in the terminal:
# - macOS users: sudo ifconfig en0 alias 10.254.254.254 255.255.255.0
# - Linux users: sudo ip addr add 10.254.254.254/32 dev lo label lo:1
# XDEBUG_CONFIG="remote_enable=1 remote_host=10.254.254.254 remote_port=9000 idekey=PHPSTORM remote_autostart=1"
# PHP_IDE_CONFIG="serverName=Docker"