Add docker and docker-compose configuration.
Add docker configuration. Add docker-compose config file. Fix ea_data path error. Add example command.
This commit is contained in:
parent
2010418d73
commit
049baed7cf
2 changed files with 36 additions and 0 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM tutum/apache-php
|
||||||
|
|
||||||
|
MAINTAINER Kun Ran <rankun203@gmail.com>
|
||||||
|
|
||||||
|
# Note: this only exposes the port to other docker containers. You
|
||||||
|
# still have to bind to 80@host at runtime, as per the ACME spec.
|
||||||
|
EXPOSE 80
|
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# Easy!Appointments
|
||||||
|
# docker-compose up ea
|
||||||
|
ea_data:
|
||||||
|
image: 'busybox:latest'
|
||||||
|
volumes:
|
||||||
|
- /var/lib/mysql
|
||||||
|
- ./src:/app
|
||||||
|
command: sleep 3153600000
|
||||||
|
ea_db:
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: supersecret
|
||||||
|
MYSQL_DATABASE: easyappts
|
||||||
|
image: mysql:5.7
|
||||||
|
volumes_from:
|
||||||
|
- ea_data
|
||||||
|
ports:
|
||||||
|
- 8003:3306
|
||||||
|
restart: always
|
||||||
|
mem_limit: 200m
|
||||||
|
ea:
|
||||||
|
build: ./
|
||||||
|
ports:
|
||||||
|
- 8001:80
|
||||||
|
- 8002:9000
|
||||||
|
links:
|
||||||
|
- ea_db:ea_db
|
||||||
|
volumes_from:
|
||||||
|
- ea_data
|
||||||
|
# Easy!Appointments end
|
Loading…
Reference in a new issue