attempt to install pdo_mysql php ext

This commit is contained in:
Mayel 2021-09-07 16:53:11 +12:00
parent b1375c5cc3
commit 1500ca7324
6 changed files with 18 additions and 7 deletions

View File

@ -10,8 +10,8 @@ PHP_VERSION=7.4
# environment for PHP frameworks like laravel/symphony
APP_ENV=prod
## Extra extensions you need
#PHP_EXTENSIONS="calendar"
## Extra extensions you need (run `abra app YOURAPPDOMAIN run app "php -m"` to see active extensions)
PHP_EXTENSIONS="pdo_mysql"
# Optional database
#COMPOSE_FILE="compose.yml:compose.mariadb.yml"

View File

@ -36,6 +36,15 @@ Coöp Cloud + [PHP](https://php.org) + MariaDB (optional) + Nginx = 🥳
6. Open the configured domain in your browser to check all is good
## Extra
You can see what PHP extensions compiled into the image, by checking the output of:
- abra app YOURAPPDOMAIN run app "php -m"
You can see the PHP config and environment, by checking the output of:
- abra app YOURAPPDOMAIN run app "php -i"
## Email
There is a local or remote SMTP relay configuration available.

View File

@ -1,7 +1,7 @@
# export PHP_VERSION=7.4
export NGINX_DEFAULT_CONF_VERSION=v7
export PHP_UPLOADS_CONF_VERSION=v3
export ENTRYPOINT_CONF_VERSION=v2
export ENTRYPOINT_CONF_VERSION=v3
export ENTRYPOINT_MAILRELAY_CONF_VERSION=v1
export MSMTP_CONF_VERSION=v3

View File

@ -3,6 +3,7 @@ services:
app:
environment:
- DB_HOST=${STACK_NAME}_db
# - DB_HOST=db
- DB_USER=site
- DB_PASSWORD_FILE=/run/secrets/db_password
- DB_NAME=site

View File

@ -12,10 +12,10 @@ services:
configs:
- source: php_uploads_conf
target: /usr/local/etc/php/conf.d/uploads.ini
# - source: entrypoint_conf
# target: /docker-entrypoint.sh
# mode: 0555
# entrypoint: /docker-entrypoint.sh
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
entrypoint: /docker-entrypoint.sh
deploy:
update_config:
failure_action: rollback

View File

@ -1,6 +1,7 @@
#!/bin/bash
{{ if (env "PHP_EXTENSIONS") }}
echo Installing PHP extensions {{ env "PHP_EXTENSIONS" }}
docker-php-ext-install {{ env "PHP_EXTENSIONS" }}
{{ end }}