Merge branch 'rankun203-feature-docker-compose' into develop

This commit is contained in:
alext 2017-01-16 23:33:54 +01:00
commit 5075310289
2 changed files with 28 additions and 0 deletions

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM tutum/apache-php
MAINTAINER Alex Tselegidis <alextselegidis@gmail.com>
EXPOSE 80

23
docker-compose.yml Normal file
View file

@ -0,0 +1,23 @@
storage:
image: 'busybox:latest'
volumes:
- /var/lib/mysql
- ./src:/app
command: sleep 3153600000
database:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: easyappointments
volumes_from:
- storage
restart: always
mem_limit: 200m
app:
build: ./
ports:
- 80:80
links:
- database:database
volumes_from:
- storage