Add a docker-compose configuration to try to reproduce #386
Cette révision appartient à :
Parent
6837b28e03
révision
594ee68ca6
11
README.md
11
README.md
@ -368,6 +368,17 @@ The `web.config` needs an entry for `<rewrite>` under `<system.webServer>`:
|
||||
|
||||
To use clean URLs on IIS 6, you will need to use a custom URL rewrite module, such as [URL Rewriter](http://urlrewriter.net/).
|
||||
|
||||
## Docker
|
||||
|
||||
A docker configuration is also provided to run daux within a container, you can either run daux with php5 or php7.
|
||||
|
||||
```
|
||||
cd docker
|
||||
docker-compose -f docker-compose.7.yml up -d
|
||||
```
|
||||
|
||||
You can then point your browser to http://localhost:8086
|
||||
|
||||
## Compatibility
|
||||
|
||||
Daux.io is compatible with PHP 5.5 and up.
|
||||
|
18
docker/docker-compose.5.yml
Fichier normal
18
docker/docker-compose.5.yml
Fichier normal
@ -0,0 +1,18 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
ports:
|
||||
- 8086:80
|
||||
volumes:
|
||||
- ../:/var/www:ro
|
||||
- ./nginx_default.conf:/etc/nginx/conf.d/default.conf
|
||||
links:
|
||||
- phpserver
|
||||
|
||||
phpserver:
|
||||
image: php:5-fpm
|
||||
working_dir: /var/www/
|
||||
volumes:
|
||||
- ../:/var/www/
|
18
docker/docker-compose.7.yml
Fichier normal
18
docker/docker-compose.7.yml
Fichier normal
@ -0,0 +1,18 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
ports:
|
||||
- 8086:80
|
||||
volumes:
|
||||
- ../:/var/www:ro
|
||||
- ./nginx_default.conf:/etc/nginx/conf.d/default.conf
|
||||
links:
|
||||
- phpserver
|
||||
|
||||
phpserver:
|
||||
image: php:7.0-fpm
|
||||
working_dir: /var/www/
|
||||
volumes:
|
||||
- ../:/var/www/
|
26
docker/nginx_default.conf
Fichier normal
26
docker/nginx_default.conf
Fichier normal
@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name daux.io;
|
||||
|
||||
index index.php;
|
||||
charset utf-8;
|
||||
|
||||
root /var/www;
|
||||
|
||||
location / {
|
||||
if (!-e $request_filename){
|
||||
rewrite ^(.*)$ /index.php$1;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ \.php {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
|
||||
fastcgi_pass phpserver:9000;
|
||||
fastcgi_index index.php;
|
||||
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
}
|
Chargement…
Référencer dans un nouveau ticket
Block a user