aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-01-11 09:08:39 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-01-11 09:08:39 +0100
commit0aafb8dfcb098ae586dc87f3487b4948f8ae2314 (patch)
tree601e1f208bd5e7bf38369241ec0beb1eb820a8f3 /docker/php
parent4aa29971062dd41df89939b8e6c20e3ed2ed7183 (diff)
parent8b909e7ea7773807fdcae6e1cc08b2e62084bfd9 (diff)
downloadwallabag-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/Dockerfile10
-rw-r--r--docker/php/env6
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 @@
1FROM php:fpm
2
3RUN 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
8RUN usermod -u 1000 www-data
9
10CMD ["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 @@
1SYMFONY__ENV__DATABASE_DRIVER=pdo_sqlite
2SYMFONY__ENV__DATABASE_HOST=127.0.0.1
3SYMFONY__ENV__DATABASE_PORT=~
4SYMFONY__ENV__DATABASE_NAME=symfony
5SYMFONY__ENV__DATABASE_USER=root
6SYMFONY__ENV__DATABASE_PASSWORD=~