mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 11:31:05 +00:00
commit
e7931dbdf8
2 changed files with 53 additions and 42 deletions
|
@ -1,42 +1,48 @@
|
||||||
nginx:
|
version: '2'
|
||||||
image: nginx
|
services:
|
||||||
ports:
|
nginx:
|
||||||
- "8080:80"
|
image: nginx
|
||||||
volumes:
|
ports:
|
||||||
- ./docker/nginx/nginx.conf:/nginx.conf
|
- "8080:80"
|
||||||
- ./docker/logs/nginx:/var/log/nginx
|
volumes:
|
||||||
- .:/var/www/html
|
- ./docker/nginx/nginx.conf:/nginx.conf
|
||||||
links:
|
- ./docker/logs/nginx:/var/log/nginx
|
||||||
- php:php
|
- .:/var/www/html
|
||||||
command: nginx -c /nginx.conf
|
links:
|
||||||
php:
|
- php:php
|
||||||
build: docker/php
|
command: nginx -c /nginx.conf
|
||||||
ports:
|
php:
|
||||||
- "9000:9000"
|
build:
|
||||||
volumes:
|
context: docker/php
|
||||||
- .:/var/www/html
|
args:
|
||||||
#links:
|
# Set here your timezone using one of this: http://php.net/manual/en/timezones.php
|
||||||
# - "postgres:rdbms"
|
timezone: 'Europe/Monaco'
|
||||||
# - "mariadb:rdbms"
|
ports:
|
||||||
env_file:
|
- "9000:9000"
|
||||||
- ./docker/php/env
|
volumes:
|
||||||
# Comment non-used DBMS lines
|
- .:/var/www/html
|
||||||
# If all DBMS are commented out, sqlite will be used as default
|
#links:
|
||||||
# - ./docker/postgres/env
|
# - "postgres:rdbms"
|
||||||
# - ./docker/mariadb/env
|
# - "mariadb:rdbms"
|
||||||
#postgres:
|
env_file:
|
||||||
# image: postgres:9
|
- ./docker/php/env
|
||||||
# ports:
|
# Comment non-used DBMS lines
|
||||||
# - "5432:5432"
|
# If all DBMS are commented out, sqlite will be used as default
|
||||||
# volumes:
|
# - ./docker/postgres/env
|
||||||
# - ./docker/data/pgsql:/var/lib/postgresql/data
|
# - ./docker/mariadb/env
|
||||||
# env_file:
|
#postgres:
|
||||||
# - ./docker/postgres/env
|
# image: postgres:9
|
||||||
#mariadb:
|
# ports:
|
||||||
# image: mariadb:10
|
# - "5432:5432"
|
||||||
# ports:
|
# volumes:
|
||||||
# - "3306:3306"
|
# - ./docker/data/pgsql:/var/lib/postgresql/data
|
||||||
# volumes:
|
# env_file:
|
||||||
# - ./docker/data/mariadb:/var/lib/mysql
|
# - ./docker/postgres/env
|
||||||
# env_file:
|
#mariadb:
|
||||||
# - ./docker/mariadb/env
|
# image: mariadb:10
|
||||||
|
# ports:
|
||||||
|
# - "3306:3306"
|
||||||
|
# volumes:
|
||||||
|
# - ./docker/data/mariadb:/var/lib/mysql
|
||||||
|
# env_file:
|
||||||
|
# - ./docker/mariadb/env
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
FROM php:fpm
|
FROM php:fpm
|
||||||
|
|
||||||
|
# Default timezone. To change it, use the argument in the docker-compose.yml file
|
||||||
|
ARG timezone='Europe/Paris'
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libmcrypt-dev libicu-dev libpq-dev libxml2-dev \
|
libmcrypt-dev libicu-dev libpq-dev libxml2-dev \
|
||||||
&& docker-php-ext-install \
|
&& docker-php-ext-install \
|
||||||
iconv mcrypt mbstring intl pdo pdo_mysql pdo_pgsql
|
iconv mcrypt mbstring intl pdo pdo_mysql pdo_pgsql
|
||||||
|
|
||||||
|
RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini
|
||||||
|
|
||||||
RUN usermod -u 1000 www-data
|
RUN usermod -u 1000 www-data
|
||||||
|
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|
Loading…
Reference in a new issue