-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from pilot/docker
Eventator support fast run with Docker
- Loading branch information
Showing
7 changed files
with
150 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM phpmentors/symfony-app:php70 | ||
|
||
# default document root is /var/app/web folder | ||
COPY ./ /var/app | ||
|
||
# example how to install app in the container | ||
# RUN apt-get update && \ | ||
# apt-get install -y curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
unzip \ | ||
libssl-dev \ | ||
libzip-dev \ | ||
zlib1g-dev \ | ||
libgs-dev \ | ||
cron | ||
RUN apt-get install -y libmagickwand-dev --no-install-recommends | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
RUN composer --version | ||
|
||
VOLUME ["/var/app"] | ||
|
||
WORKDIR /var/app | ||
|
||
EXPOSE 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: '3' | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
restart: always | ||
container_name: eve_mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_DATABASE: eve | ||
MYSQL_USER: root | ||
MYSQL_PASSWORD: root | ||
ports: | ||
- 3307:3306 | ||
volumes: | ||
- ./dbdata:/var/lib/mysql | ||
|
||
php: | ||
build: . | ||
restart: always | ||
container_name: eve | ||
links: | ||
- mysql | ||
ports: | ||
- 80:80 | ||
volumes: | ||
- .:/var/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters