Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
prog committed Apr 11, 2017
0 parents commit e706da7
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copy or rename this file to '.env' and enter your values

APACHE_DOCROOT=./docroot
APACHE_PORT=80
MARIA_DATADIR=./maria-data
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/maria-data/
/.env
7 changes: 7 additions & 0 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM php:7.1-apache

RUN a2enmod rewrite \
&& docker-php-ext-install \
pdo \
pdo_mysql \
;
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3'
services:

webdev_apache:
build: ./apache
volumes:
- "${APACHE_DOCROOT}:/var/www/html"
ports:
- "${APACHE_PORT}:80"
links:
- webdev_mariadb:mariadb
environment:
- MYSQL_HOST=mariadb
- MYSQL_USER=root
- MYSQL_PASS=xxxx

webdev_mariadb:
image: mariadb:10.1
volumes:
- "${MARIA_DATADIR}:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=xxxx
3 changes: 3 additions & 0 deletions docroot/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Options +Indexes


3 changes: 3 additions & 0 deletions docroot/phpinfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

phpinfo();
Empty file added maria-data/.gitkeep
Empty file.

0 comments on commit e706da7

Please sign in to comment.