diff options
Diffstat (limited to 'docker/php')
-rw-r--r-- | docker/php/Dockerfile | 10 | ||||
-rw-r--r-- | docker/php/env | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile new file mode 100644 index 00000000..7c56ae57 --- /dev/null +++ b/docker/php/Dockerfile | |||
@@ -0,0 +1,10 @@ | |||
1 | FROM php:fpm | ||
2 | |||
3 | RUN apt-get update && apt-get install -y \ | ||
4 | libmcrypt-dev libicu-dev libpq-dev libxml2-dev \ | ||
5 | && docker-php-ext-install \ | ||
6 | iconv mcrypt mbstring intl pdo pdo_mysql pdo_pgsql | ||
7 | |||
8 | RUN usermod -u 1000 www-data | ||
9 | |||
10 | CMD ["php-fpm"] | ||
diff --git a/docker/php/env b/docker/php/env new file mode 100644 index 00000000..935134fc --- /dev/null +++ b/docker/php/env | |||
@@ -0,0 +1,6 @@ | |||
1 | SYMFONY__ENV__DATABASE_DRIVER=pdo_sqlite | ||
2 | SYMFONY__ENV__DATABASE_HOST=127.0.0.1 | ||
3 | SYMFONY__ENV__DATABASE_PORT=~ | ||
4 | SYMFONY__ENV__DATABASE_NAME=symfony | ||
5 | SYMFONY__ENV__DATABASE_USER=root | ||
6 | SYMFONY__ENV__DATABASE_PASSWORD=~ | ||