Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM php:7-fpm | ||
|
||
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client \ | ||
&& docker-php-ext-install mcrypt pdo_mysql | ||
|
||
WORKDIR /var/www |
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,18 @@ | ||
server { | ||
listen 80; | ||
index index.php index.html; | ||
root /var/www/public; | ||
|
||
location / { | ||
try_files $uri /index.php?$args; | ||
} | ||
|
||
location ~ \.php$ { | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass app:9000; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
} | ||
} |
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,4 @@ | ||
FROM nginx:1.10 | ||
|
||
ADD ./deploy/vhost.conf /etc/nginx/conf.d/default.conf | ||
WORKDIR /var/www |
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,30 @@ | ||
version: '2' | ||
services: | ||
web: | ||
build: | ||
context: ./ | ||
dockerfile: deploy/web.docker | ||
volumes: | ||
- ./:/var/www | ||
ports: | ||
- "8080:80" | ||
links: | ||
- app | ||
app: | ||
build: | ||
context: ./ | ||
dockerfile: deploy/app.docker | ||
volumes: | ||
- ./:/var/www | ||
links: | ||
- database | ||
environment: | ||
- "DB_PORT=3306" | ||
- "DB_HOST=database" | ||
database: | ||
image: mysql:5.6 | ||
environment: | ||
- "MYSQL_ROOT_PASSWORD=secret" | ||
- "MYSQL_DATABASE=filemanager" | ||
ports: | ||
- "33061:3306" |