diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-11 09:08:39 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-11 09:08:39 +0100 |
commit | 0aafb8dfcb098ae586dc87f3487b4948f8ae2314 (patch) | |
tree | 601e1f208bd5e7bf38369241ec0beb1eb820a8f3 /docker/php | |
parent | 4aa29971062dd41df89939b8e6c20e3ed2ed7183 (diff) | |
parent | 8b909e7ea7773807fdcae6e1cc08b2e62084bfd9 (diff) | |
download | wallabag-0aafb8dfcb098ae586dc87f3487b4948f8ae2314.tar.gz wallabag-0aafb8dfcb098ae586dc87f3487b4948f8ae2314.tar.zst wallabag-0aafb8dfcb098ae586dc87f3487b4948f8ae2314.zip |
Merge pull request #1561 from FabienM/docker-compose
Add basic docker-compose configuration
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=~ | ||