docker

Docker for services
git clone git://git.unixkoans.com/docker.git
Log | Files | Refs

commit ee9967c1d9fa171e0bae5b0e0713a040e91c3532
Author: Xiaodong Xu <xuxiaodong@medatc.com>
Date:   Wed May 16 11:34:11 +0800

First commit

Diffstat:
mantisbt/Dockerfile | 31+++++++++++++++++++++++++++++++
mantisbt/docker-compose.yml | 23+++++++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/mantisbt/Dockerfile b/mantisbt/Dockerfile @@ -0,0 +1,31 @@ +# +# Dockerfile for mantisbt +# + +FROM php:5.6-apache +MAINTAINER kev <noreply@easypi.pro> + +RUN a2enmod rewrite + +RUN set -xe \ + && apt-get update \ + && apt-get install -y libpng12-dev libjpeg-dev libpq-dev libxml2-dev \ + && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ + && docker-php-ext-install gd mbstring mysql mysqli pgsql soap \ + && rm -rf /var/lib/apt/lists/* + +ENV MANTIS_VER 2.13.1 +ENV MANTIS_MD5 1ff28aca7944b2bc44c996933e2cd0e9 +ENV MANTIS_URL http://jaist.dl.sourceforge.net/project/mantisbt/mantis-stable/${MANTIS_VER}/mantisbt-${MANTIS_VER}.tar.gz +ENV MANTIS_FILE mantisbt.tar.gz + +RUN set -xe \ + && curl -fSL ${MANTIS_URL} -o ${MANTIS_FILE} \ + && echo "${MANTIS_MD5} ${MANTIS_FILE}" | md5sum -c \ + && tar -xz --strip-components=1 -f ${MANTIS_FILE} \ + && rm ${MANTIS_FILE} \ + && chown -R www-data:www-data . + +RUN set -xe \ + && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ + && echo 'date.timezone = "Asia/Shanghai"' > /usr/local/etc/php/php.ini diff --git a/mantisbt/docker-compose.yml b/mantisbt/docker-compose.yml @@ -0,0 +1,23 @@ +version: '2' + +services: + mantisbt: + image: vimagick/mantisbt:latest + restart: always + depends_on: + - mysql + ports: + - "9090:80" + volumes: + - /var/local/mantis:/var/www/html + + mysql: + image: mysql:5.7 + restart: always + volumes: + - /var/local/mysql:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=mantis + - MYSQL_USER=mantis + - MYSQL_PASSWORD=mantis