mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +03:00
Edited docker configuration.
This commit is contained in:
parent
926b26f23c
commit
ac01f41ab7
2 changed files with 11 additions and 19 deletions
|
@ -1,7 +1,5 @@
|
|||
FROM tutum/apache-php
|
||||
|
||||
MAINTAINER Kun Ran <rankun203@gmail.com>
|
||||
MAINTAINER Alex Tselegidis <alextselegidis@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
|
||||
|
|
|
@ -1,29 +1,23 @@
|
|||
# Easy!Appointments
|
||||
# docker-compose up ea
|
||||
ea_data:
|
||||
storage:
|
||||
image: 'busybox:latest'
|
||||
volumes:
|
||||
- /var/lib/mysql
|
||||
- ./src:/app
|
||||
command: sleep 3153600000
|
||||
ea_db:
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: supersecret
|
||||
MYSQL_DATABASE: easyappts
|
||||
database:
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: easyappointments
|
||||
volumes_from:
|
||||
- ea_data
|
||||
# ports:
|
||||
# - 8003:3306
|
||||
- storage
|
||||
restart: always
|
||||
mem_limit: 200m
|
||||
ea:
|
||||
app:
|
||||
build: ./
|
||||
ports:
|
||||
- 8001:80
|
||||
# - 8002:9000
|
||||
- 80:80
|
||||
links:
|
||||
- ea_db:ea_db
|
||||
- database:database
|
||||
volumes_from:
|
||||
- ea_data
|
||||
# Easy!Appointments end
|
||||
- storage
|
||||
|
|
Loading…
Reference in a new issue