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
|
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
|
EXPOSE 80
|
||||||
|
|
|
@ -1,29 +1,23 @@
|
||||||
# Easy!Appointments
|
storage:
|
||||||
# docker-compose up ea
|
|
||||||
ea_data:
|
|
||||||
image: 'busybox:latest'
|
image: 'busybox:latest'
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/mysql
|
- /var/lib/mysql
|
||||||
- ./src:/app
|
- ./src:/app
|
||||||
command: sleep 3153600000
|
command: sleep 3153600000
|
||||||
ea_db:
|
database:
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: supersecret
|
|
||||||
MYSQL_DATABASE: easyappts
|
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: root
|
||||||
|
MYSQL_DATABASE: easyappointments
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- ea_data
|
- storage
|
||||||
# ports:
|
|
||||||
# - 8003:3306
|
|
||||||
restart: always
|
restart: always
|
||||||
mem_limit: 200m
|
mem_limit: 200m
|
||||||
ea:
|
app:
|
||||||
build: ./
|
build: ./
|
||||||
ports:
|
ports:
|
||||||
- 8001:80
|
- 80:80
|
||||||
# - 8002:9000
|
|
||||||
links:
|
links:
|
||||||
- ea_db:ea_db
|
- database:database
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- ea_data
|
- storage
|
||||||
# Easy!Appointments end
|
|
||||||
|
|
Loading…
Reference in a new issue