forked from mirrors/easyappointments
Merge branch 'rankun203-feature-docker-compose' into develop
This commit is contained in:
commit
5075310289
2 changed files with 28 additions and 0 deletions
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FROM tutum/apache-php
|
||||||
|
|
||||||
|
MAINTAINER Alex Tselegidis <alextselegidis@gmail.com>
|
||||||
|
|
||||||
|
EXPOSE 80
|
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal 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
|
Loading…
Reference in a new issue