-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Docker compose, Dockerfile, and PHP ini file for running Unmark.
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
date.timezone = "UTC" | ||
##extension=mysqli.so |