Permalink
Browse files

added dockerfile and docker-compose config

  • Loading branch information...
ludekvesely committed Dec 31, 2015
1 parent 8642b30 commit 05184e416e8679eddcb36982632708a5b063ce5d
Showing with 33 additions and 3 deletions.
  1. +14 −0 Dockerfile
  2. +4 −3 app/config/config.local.neon
  3. +15 −0 docker-compose.yml
@@ -0,0 +1,14 @@
FROM tutum/apache-php

RUN apt-get update && apt-get install -yq php5-sqlite && \
rm -rf /var/lib/apt/lists/* && rm -fr /app

COPY . /app

RUN chmod 777 log temp && \
composer install && \
rm -rf composer* Dockerfile .git && \
sed -i "s/DocumentRoot \/var\/www\/html/DocumentRoot \/var\/www\/html\/www/g" /etc/apache2/sites-available/000-default.conf

ENV ALLOW_OVERRIDE true

@@ -2,8 +2,9 @@ parameters:


database:
dsn: 'mysql:host=127.0.0.1;dbname=test'
user:
password:
dsn: 'mysql:host=db;port=3306;dbname=test'
user: admin
password: testpass
options:
lazy: yes

@@ -0,0 +1,15 @@
web:
build: .
links:
- db
ports:
- "80"
db:
image: tutum/mysql
environment:
STARTUP_SQL: "/tmp/database.sql"
ON_CREATE_DB: test
MYSQL_PASS: testpass
volumes:
- ./database.sql:/tmp/database.sql:ro

0 comments on commit 05184e4

Please sign in to comment.