diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/php/Dockerfile | 34 | ||||
-rw-r--r-- | docker/postgres/env | 12 |
2 files changed, 35 insertions, 11 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index d0266ec7..171e12fc 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile | |||
@@ -1,15 +1,39 @@ | |||
1 | FROM php:fpm | 1 | FROM php:7.2-fpm |
2 | 2 | ||
3 | # Default timezone. To change it, use the argument in the docker-compose.yml file | 3 | # Default timezone. To change it, use the argument in the docker-compose.yml file |
4 | ARG timezone='Europe/Paris' | 4 | ARG timezone='Europe/Paris' |
5 | ARG memorylimit='512M' | ||
5 | 6 | ||
6 | RUN apt-get update && apt-get install -y \ | 7 | RUN apt-get update && apt-get install -y \ |
7 | libmcrypt-dev libicu-dev libpq-dev libxml2-dev libpng-dev libjpeg-dev \ | 8 | libmcrypt-dev \ |
8 | && /usr/local/bin/docker-php-ext-configure gd --with-jpeg-dir=/usr/include \ | 9 | libicu-dev \ |
9 | && docker-php-ext-install \ | 10 | libpq-dev \ |
10 | iconv mbstring intl pdo pdo_mysql pdo_pgsql gd | 11 | libxml2-dev \ |
12 | libpng-dev \ | ||
13 | libjpeg-dev \ | ||
14 | libsqlite3-dev \ | ||
15 | imagemagick \ | ||
16 | libmagickwand-dev \ | ||
17 | libtidy-dev \ | ||
18 | git | ||
19 | RUN docker-php-ext-install \ | ||
20 | iconv \ | ||
21 | mbstring \ | ||
22 | gd \ | ||
23 | intl \ | ||
24 | pdo \ | ||
25 | pdo_mysql \ | ||
26 | pdo_pgsql \ | ||
27 | pdo_sqlite \ | ||
28 | sockets \ | ||
29 | tidy \ | ||
30 | bcmath \ | ||
31 | zip | ||
32 | |||
33 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | ||
11 | 34 | ||
12 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini | 35 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini |
36 | RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini | ||
13 | 37 | ||
14 | RUN usermod -u 1000 www-data | 38 | RUN usermod -u 1000 www-data |
15 | 39 | ||
diff --git a/docker/postgres/env b/docker/postgres/env index 80c78c2a..0dd1adb3 100644 --- a/docker/postgres/env +++ b/docker/postgres/env | |||
@@ -1,9 +1,9 @@ | |||
1 | POSTGRES_USER=wallabag | 1 | POSTGRES_USER=wallabag |
2 | POSTGRES_PASSWORD=wallapass | 2 | POSTGRES_PASSWORD=wallapass |
3 | POSTGRES_DB=wallabag | 3 | POSTGRES_DB=wallabag |
4 | export SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql | 4 | SYMFONY__ENV__DATABASE_HOST=rdbms |
5 | export SYMFONY__ENV__DATABASE_HOST=rdbms | 5 | SYMFONY__ENV__DATABASE_PORT=5432 |
6 | export SYMFONY__ENV__DATABASE_PORT=5432 | 6 | SYMFONY__ENV__DATABASE_NAME=wallabag |
7 | export SYMFONY__ENV__DATABASE_NAME=wallabag | 7 | SYMFONY__ENV__DATABASE_USER=wallabag |
8 | export SYMFONY__ENV__DATABASE_USER=wallabag | 8 | SYMFONY__ENV__DATABASE_PASSWORD=wallapass |
9 | export SYMFONY__ENV__DATABASE_PASSWORD=wallapass | 9 | SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql |