Skip to content

Commit

Permalink
Added Docker compose, Dockerfile, and PHP ini file for running Unmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdevroe committed Jan 25, 2019
1 parent bf9186e commit d82e375
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM php:5.6-apache
RUN docker-php-ext-install -j$(nproc) mysqli && a2enmod rewrite
54 changes: 54 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
##
## Docker Containers
## This creates containers running mySQL and WordPress
## for running Unmark.
##
## Written by Colin Devroe cdevroe.com
##
## Version 1.0 Build 001
##

version: '3.3'

services:
apache:
container_name: unmark_apache
build:
context: ./
image: php:5.6-apache
hostname: apache
ports:
- "80:80"
volumes:
- ./:/var/www/html
- ./docker-configs/php-custom.ini:/usr/local/etc/php/conf.d/custom.ini
depends_on:
- mysql
links:
- mysql
mysql:
container_name: unmark_mysql
image: mysql:5.7
hostname: mysql
ports:
- "3306:3306"
volumes:
- unmark_db_volume:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: unmarkrootmysqlpass
MYSQL_DATABASE: unmark
MYSQL_USER: unmarkuser
MYSQL_PASSWORD: unmarkpass
phpmyadmin:
container_name: unmark_phpmyadmin
image: phpmyadmin/phpmyadmin
links:
- mysql:db
ports:
- "8082:80"
environment:
- PMA_USER=unmarkuser
- PMA_PASSWORD=unmarkpass
- PHP_UPLOAD_MAX_FILESIZE=100MB
volumes:
unmark_db_volume:
2 changes: 2 additions & 0 deletions docker-configs/php-custom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
date.timezone = "UTC"
##extension=mysqli.so

0 comments on commit d82e375

Please sign in to comment.