-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env
157 lines (127 loc) · 5.24 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
###> General Config / Docker Compose Settings ###
# https://docs.docker.com/compose/reference/envvars/#compose_project_name
COMPOSE_PROJECT_NAME=de_ixno_php_calendar_api
# ARM64V8 name
ARM64V8=arm64v8
# a) Either ARM64V8 image add (for non Mac arm processors)
IMAGE_ADD=""
# b) Or ARM64V8 image add (for Mac arm processors)
#IMAGE_ADD="${ARM64V8}/"
# Namespace of this project
NAMESPACE=de.ixno.php-calendar-api
# Namespace of this project (development)
NAMESPACE_DEVELOPMENT=${NAMESPACE}.development
# Namespace to use for host name variables (hostname safe)
NAMESPACE_HOSTNAME=de-ixno-php-calendar-api
# Namespace to use for host name variables (hostname safe) (development)
NAMESPACE_HOSTNAME_DEVELOPMENT=${NAMESPACE_HOSTNAME}-development
# Namespace of image
APP_IMAGE=ixnode/${IMAGE_ADD}php-calendar-api
# Namespace of image (development)
APP_IMAGE_DEVELOPMENT=ixnode/${IMAGE_ADD}php-calendar-api-dev
# The URL of this project
GENERAL_URL_BASIC=twelvepics.com
GENERAL_URL=${GENERAL_URL_BASIC}
# htpasswd -nbm user pass
GENERAL_BASICAUTH=user:$$apr1$$7Aa2.yBz$$2nTJ7p9le2M1dFTJP3pbe.
# The port for access via the web
NGINX_EXPOSE_PORT_HTTP=80
NGINX_EXPOSE_PORT_HTTPS=443
# Version of this app
VERSION_APP=0.34.0
# Version of this app
VERSION_APP_LATEST=latest
# Set UID and GID
UID=1000 # ${UID:-1000}
GID=1000 # ${GID:-1000}
###< General Config / Docker Compose Settings ###
###> symfony/framework-bundle ###
APP_ENV=prod
APP_DEBUG=0
APP_SECRET=[CHANGEME]
APP_TRUSTED_PROXIES=[CHANGEME] # '192.168.0.0/16,10.0.0.0/8'
###< symfony/framework-bundle ###
###> PHP Configuration ###
PHP_FPM_SERVER_DOCKERFILE=php-fpm.dockerfile
PHP_VERSION=8.1.4
PHP_VERSION_HOSTNAME=8-1-4
###< PHP Configuration ###
###> Docker Configuration: MySQL secrets and configurations
MYSQL_VERSION=10.7.3
MYSQL_VERSION_HOSTNAME=10-7-1
MYSQL_IMAGE=mariadb:${MYSQL_VERSION}
MYSQL_SERVER_USER_ROOT=root
MYSQL_SERVER_PASSWORD_ROOT=ajWqh7sUeUUa
MYSQL_SERVER_PORT='3306'
MYSQL_SERVER_VERSION=mariadb-10.7.3
MYSQL_SERVER_DRIVER=pdo_mysql
# db
MYSQL_SERVER_DB=php-calendar-api
MYSQL_SERVER_USER=php-calendar-api
MYSQL_SERVER_PASSWORD=php-calendar-api
# test db
MYSQL_SERVER_DB_TEST=php-calendar-api-test
MYSQL_SERVER_USER_TEST=php-calendar-api-test
MYSQL_SERVER_PASSWORD_TEST=php-calendar-api-test
###< Docker Configuration: MySQL secrets and configurations
###> Adminer web application configs
ADMINER_WEB_APPLICATION_URL=adminer.${GENERAL_URL_BASIC}
ADMINER_WEB_APPLICATION_IMAGE=adminer:4.8.1
ADMINER_WEB_APPLICATION_CONTAINER_NAME=adminer-4.8.1-${NAMESPACE}
ADMINER_WEB_APPLICATION_HOSTNAME=adminer-4-8-1-${NAMESPACE_HOSTNAME}
###< Adminer web application configs
###> Messenger Doctrine Transport
MESSENGER_TRANSPORT_DSN=doctrine://default
###< Messenger Doctrine Transport
###> Traefik configs
TRAEFIK_SUFFIX=
###< Traefik configs
###> Docker Configuration: Mail secrets and configurations
MAIL_SERVER_TRANSPORT=smtp
MAIL_SERVER_HOST=localhost
MAIL_SERVER_PORT=1025
###< Docker Configuration: Mail secrets and configurations
###> Docker Configuration: System secrets and configurations
SYSTEM_CONTEXT=Development
SYSTEM_PROXY_HOST=
###< Docker Configuration: System secrets and configurations
###> Docker Configuration: General configurations
MYSQL_EXPOSE_PORT='3306' # Attention: Please also make changes to the DOCTRINE_DB_PORT variable.
MYSQL_EXPOSE_PORT_TEST='3321'
###< Docker Configuration: General configurations
###> own variables ###
PROJECT_NAME="PHP Calendar API"
API_BASE_URL=/api/v1
###< own variables ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=*
###< nelmio/cors-bundle ###
###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=cf0c55c30bea94a163674696bca73ad5
JWT_ROLE=IS_AUTHENTICATED_FULLY # AuthenticatedVoter::IS_AUTHENTICATED_FULLY (default), AuthenticatedVoter::PUBLIC_ACCESS, etc.
###< lexik/jwt-authentication-bundle ###
###> api ###
API_TRUSTED_IPS=127.0.0.1
###< api ###
###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
DOCTRINE_DB_HOST=${ENV_DB_HOST:-127.0.0.1}
DOCTRINE_DB_PORT=${ENV_DB_PORT:-3306} # ${ENV_DB_PORT:-${MYSQL_EXPOSE_PORT}} does not work
DOCTRINE_DB_NAME=${MYSQL_SERVER_DB}
DOCTRINE_DB_USER=${MYSQL_SERVER_USER_ROOT}
DOCTRINE_DB_PASS=${MYSQL_SERVER_PASSWORD_ROOT}
DOCTRINE_DB_DRIVER=${MYSQL_SERVER_DRIVER}
DOCTRINE_DB_VERSION=${MYSQL_SERVER_VERSION}
###< doctrine/doctrine-bundle ###
###> table-dumper (local docker settings) ###
MYSQLDUMP_DATABASE_URL=mysql://php-calendar-api:php-calendar-api@127.0.0.1:3320/php-calendar-api?serverVersion=5.7
#MYSQLDUMP_DATABASE_URL=mysql://php-calendar-api:php-calendar-api@de-ixno-php-calendar-api-development-db-10-7-1:3306/php-calendar-api?serverVersion=5.7
MYSQLDUMP_IGNORED_TABLES=calendar*,doctrine_migration_versions,event,holiday_group,image,place,refresh_tokens,user
MYSQLDUMP_IGNORED_TABLES=calendar*,doctrine_migration_versions,event,holiday_group,image,place,refresh_tokens,user,holiday
#MYSQLDUMP_FILTERED_TABLES=
#MYSQLDUMP_TABLES_NO_DATA=
#MYSQLDUMP_TABLES_ONLY_DATA=
###< table-dumper (local docker settings) ###