|
| 1 | +###> General Config / Docker Compose Settings ### |
| 2 | + |
| 3 | +# https://docs.docker.com/compose/reference/envvars/#compose_project_name |
| 4 | +COMPOSE_PROJECT_NAME=de_ixnode_php_api_version_bundle |
| 5 | + |
| 6 | +# ARM64V8 name |
| 7 | +ARM64V8=arm64v8 |
| 8 | + |
| 9 | +# a) Either ARM64V8 image add (for non Mac arm processors) |
| 10 | +IMAGE_ADD= |
| 11 | + |
| 12 | +# b) Or ARM64V8 image add (for Mac arm processors) |
| 13 | +#IMAGE_ADD="${ARM64V8}/" |
| 14 | + |
| 15 | +# Namespace of this project |
| 16 | +NAMESPACE=de.ixnode.php.api.version.bundle |
| 17 | + |
| 18 | +# Namespace of this project (development) |
| 19 | +NAMESPACE_DEVELOPMENT=${NAMESPACE}.development |
| 20 | + |
| 21 | +# Namespace to use for host name variables (hostname safe) |
| 22 | +NAMESPACE_HOSTNAME=de-ixnode-php-api-version-bundle |
| 23 | + |
| 24 | +# Namespace to use for host name variables (hostname safe) (development) |
| 25 | +NAMESPACE_HOSTNAME_DEVELOPMENT=${NAMESPACE_HOSTNAME}-development |
| 26 | + |
| 27 | +# Namespace to use for host name variables (hostname safe) |
| 28 | +NAMESPACE_UNDERLINE=de_ixnode_php_api_version_bundle |
| 29 | + |
| 30 | +# Namespace to use for host name variables (hostname safe) (development) |
| 31 | +NAMESPACE_HOSTNAME_UNDERLINE=${NAMESPACE_UNDERLINE}_development |
| 32 | + |
| 33 | +# Namespace of app image |
| 34 | +IMAGE_APP=ixnode/php-api-version/${IMAGE_ADD}app |
| 35 | + |
| 36 | +# Namespace of app image (development) |
| 37 | +IMAGE_PHP=ixnode/php-api-version/${IMAGE_ADD}php |
| 38 | + |
| 39 | +# Namespace of nginx image |
| 40 | +IMAGE_NGINX=ixnode/php-api-version/${IMAGE_ADD}nginx |
| 41 | + |
| 42 | +# Namespace of mysql image |
| 43 | +IMAGE_MYSQL=${IMAGE_ADD}mysql:8.0.31 |
| 44 | + |
| 45 | +IMAGE_ADMINER=${IMAGE_ADD}adminer:4.8.1 |
| 46 | + |
| 47 | +# The general URL of this project |
| 48 | +URL_PRODUCTION=php-api-version-bundle.ixnode.de |
| 49 | + |
| 50 | +# The local URL of this project |
| 51 | +URL_LOCAL=api-version.localhost |
| 52 | + |
| 53 | +# htpasswd -nbm ixno Omaderisave483 (do not use $$ on old composer version) |
| 54 | +GENERAL_BASICAUTH_PRODUCTION='ixno:$apr1$5JvcxkWC$iA7cBjSG3xTSO/Y/dsHZt/' |
| 55 | + |
| 56 | +# Version of this app |
| 57 | +VERSION_APP=0.1.0 |
| 58 | + |
| 59 | +# Version of nginx image |
| 60 | +VERSION_NGINX=0.1.0 |
| 61 | + |
| 62 | +# Version of php image |
| 63 | +VERSION_PHP=0.1.0 |
| 64 | + |
| 65 | +# Version of this app |
| 66 | +VERSION_APP_LATEST=latest |
| 67 | + |
| 68 | +# Set UID and GID |
| 69 | +UID=${UID} |
| 70 | +GID=${GID} |
| 71 | + |
| 72 | +# Traefik network name (local) |
| 73 | +NETWORK_NAME_TRAEFIK_PUBLIC_LOCAL=traefik |
| 74 | + |
| 75 | +# Traefik network name (public) |
| 76 | +NETWORK_NAME_TRAEFIK_PUBLIC_PRODUCTION=traefik-public |
| 77 | + |
| 78 | +# https port |
| 79 | +PORT_HTTPS=443 |
| 80 | + |
| 81 | +# Internal docker adminer http port |
| 82 | +PORT_HTTP_ADMINER_INTERNAL=8080 |
| 83 | + |
| 84 | +# Internal docker mailhog http port |
| 85 | +PORT_HTTP_MAILHOG_INTERNAL=8025 |
| 86 | + |
| 87 | +# Internal docker mailhog smtp port |
| 88 | +PORT_SMTP_MAILHOG_INTERNAL=1025 |
| 89 | + |
| 90 | +# Expose api https port (To bypass the Traefik proxy or if it is not installed) |
| 91 | +PORT_HTTPS_API_EXPOSE=44443 |
| 92 | + |
| 93 | +# Expose adminer http port (To bypass the Traefik proxy or if it is not installed) |
| 94 | +PORT_HTTP_ADMINER_EXPOSE=8081 |
| 95 | + |
| 96 | +# Expose mailhog http port (To bypass the Traefik proxy or if it is not installed) |
| 97 | +PORT_HTTP_MAILHOG_EXPOSE=8082 |
| 98 | + |
| 99 | +# Expose mailhog smtp port (To bypass the Traefik proxy or if it is not installed) |
| 100 | +PORT_SMTP_MAILHOG_EXPOSE=1025 |
| 101 | + |
| 102 | +###< General Config / Docker Compose Settings ### |
| 103 | + |
| 104 | +###> symfony/framework-bundle ### |
| 105 | +APP_ENV=dev |
| 106 | +APP_DEBUG=1 |
| 107 | +APP_SECRET=3b337448a0100c94f60efc26437e0a57 |
| 108 | +###< symfony/framework-bundle ### |
| 109 | + |
| 110 | +###> PHP Configuration ### |
| 111 | +DOCKERFILE_PHP_FPM=php-fpm.dockerfile |
| 112 | +DOCKERFILE_NGINX=nginx.dockerfile |
| 113 | +PHP_VERSION=8.1.11 |
| 114 | +PHP_VERSION_HOSTNAME=8-1-11 |
| 115 | +###< PHP Configuration ### |
| 116 | + |
| 117 | +###> Docker Configuration: MySQL secrets and configurations |
| 118 | +MYSQL_SERVER_ROOT_USER=root |
| 119 | +MYSQL_SERVER_ROOT_PASSWORD=secret-pass |
| 120 | +MYSQL_SERVER_DB=hdb |
| 121 | +MYSQL_SERVER_DB_TEST=hdb-test |
| 122 | +MYSQL_SERVER_PORT=3306 |
| 123 | +MYSQL_SERVER_VERSION=8.0 |
| 124 | +MYSQL_SERVER_DRIVER=pdo_mysql |
| 125 | +###< Docker Configuration: MySQL secrets and configurations |
| 126 | + |
| 127 | +###> Docker Configuration: Mail secrets and configurations |
| 128 | +MAIL_SERVER_TRANSPORT=smtp |
| 129 | +MAIL_SERVER_HOST=localhost |
| 130 | +#MAIL_SERVER_HOST=${NAMESPACE_HOSTNAME_DEVELOPMENT}-mailhog |
| 131 | +MAIL_SERVER_PORT=1025 |
| 132 | +###< Docker Configuration: Mail secrets and configurations |
| 133 | + |
| 134 | +###> Docker Configuration: General configurations |
| 135 | +# Attention for EXPOSE_MYSQL_PORT: Please also make changes to the DOCTRINE_DB_PORT variable. |
| 136 | +EXPOSE_MYSQL_PORT=3336 |
| 137 | +EXPOSE_MYSQL_PORT_TEST=3337 |
| 138 | +###< Docker Configuration: General configurations |
| 139 | + |
| 140 | +##> doctrine/doctrine-bundle (mysql) ### |
| 141 | +# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url |
| 142 | +# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml |
| 143 | +DOCTRINE_DB_DRIVER=${MYSQL_SERVER_DRIVER} |
| 144 | +DOCTRINE_DB_VERSION=${MYSQL_SERVER_VERSION} |
| 145 | +DOCTRINE_DB_PATH= |
| 146 | +DOCTRINE_DB_NAME=${MYSQL_SERVER_DB} |
| 147 | +DOCTRINE_DB_HOST=${ENV_DB_HOST:-127.0.0.1} |
| 148 | +# Workaround for default port for DOCTRINE_DB_PORT: Because ${ENV_DB_PORT:-${EXPOSE_MYSQL_PORT}} does not work |
| 149 | +DOCTRINE_DB_PORT=${ENV_DB_PORT:-3336} |
| 150 | +DOCTRINE_DB_USER=${MYSQL_SERVER_ROOT_USER} |
| 151 | +DOCTRINE_DB_PASS=${MYSQL_SERVER_ROOT_PASSWORD} |
| 152 | +DOCTRINE_DB_SSL_CA= |
| 153 | +DOCTRINE_DB_SSL_VERIFY_SERVER_CERT=false |
| 154 | +DOCTRINE_DB_INIT_COMMAND="SET NAMES utf8" |
| 155 | +###< doctrine/doctrine-bundle (mysql) ### |
| 156 | + |
| 157 | +##> doctrine/doctrine-bundle (mysql) ### |
| 158 | +# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url |
| 159 | +# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml |
| 160 | +DOCTRINE_DB_DRIVER_SQLITE=${MYSQL_SERVER_DRIVER} |
| 161 | +DOCTRINE_DB_VERSION_SQLITE=${MYSQL_SERVER_VERSION} |
| 162 | +DOCTRINE_DB_PATH_SQLITE= |
| 163 | +DOCTRINE_DB_NAME_SQLITE=${MYSQL_SERVER_DB} |
| 164 | +DOCTRINE_DB_HOST_SQLITE=${ENV_DB_HOST:-127.0.0.1} |
| 165 | +# Workaround for default port for DOCTRINE_DB_PORT: Because ${ENV_DB_PORT:-${EXPOSE_MYSQL_PORT}} does not work |
| 166 | +DOCTRINE_DB_PORT_SQLITE=${ENV_DB_PORT:-3336} |
| 167 | +DOCTRINE_DB_USER_SQLITE=${MYSQL_SERVER_ROOT_USER} |
| 168 | +DOCTRINE_DB_PASS_SQLITE=${MYSQL_SERVER_ROOT_PASSWORD} |
| 169 | +DOCTRINE_DB_SSL_CA_SQLITE= |
| 170 | +DOCTRINE_DB_SSL_VERIFY_SERVER_CERT_SQLITE=false |
| 171 | +DOCTRINE_DB_INIT_COMMAND_SQLITE="SET NAMES utf8" |
| 172 | +###< doctrine/doctrine-bundle (mysql) ### |
| 173 | + |
| 174 | +###> own variables ### |
| 175 | +PROJECT_NAME="PHP Api Version Bundle" |
| 176 | +PROJECT_DESCRIPTION="Provides the base API plattform functionality." |
| 177 | +API_BASE_URL=/api/v1 |
| 178 | +API_COUNTRY_CODE=de_DE |
| 179 | +###< own variables ### |
| 180 | + |
| 181 | +###> table-dumper (local docker settings) ### |
| 182 | +MYSQLDUMP_DATABASE_URL=mysql://root:secret-pass@127.0.0.1:3336/hdb?serverVersion=8.0 |
| 183 | +MYSQLDUMP_IGNORED_TABLES= |
| 184 | +#MYSQLDUMP_FILTERED_TABLES= |
| 185 | +#MYSQLDUMP_TABLES_NO_DATA= |
| 186 | +#MYSQLDUMP_TABLES_ONLY_DATA= |
| 187 | +###< table-dumper (local docker settings) ### |
| 188 | + |
| 189 | +###> nelmio/cors-bundle ### |
| 190 | +CORS_ALLOW_ORIGIN='^https?://(php-api-version-bundle.ixnode.de|api-version.localhost|localhost|127\.0\.0\.1)(:[0-9]+)?$' |
| 191 | +###< nelmio/cors-bundle ### |
| 192 | + |
| 193 | +###> symfony/mailer ### |
| 194 | +MAILER_DSN=smtp://localhost:1025 |
| 195 | +###< symfony/mailer ### |
0 commit comments