modif readme
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# R2C
|
# docker
|
||||||
|
|
||||||
r2C powered by grav in docker environement (nginx, php:5.6-fpm)
|
Docker php 7.3fpm nginx
|
||||||
|
|
||||||
## Install docker
|
## Install docker
|
||||||
```
|
```
|
||||||
@@ -12,19 +12,19 @@ sudo pacman -S docker docker-compose docker-machine
|
|||||||
this will clone this repos (main docker environement) and the grav source code
|
this will clone this repos (main docker environement) and the grav source code
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone --recursive -o figli https://figureslibres.io/gogs/kevin/docker-r2c-grav.git
|
git clone --recursive -o figli https://figureslibres.io/gogs/kevin/docker-grav.git
|
||||||
```
|
```
|
||||||
|
|
||||||
## Hosts and reverse proxy
|
## Hosts and reverse proxy
|
||||||
|
|
||||||
add to your /etc/hosts :
|
add to your /etc/hosts :
|
||||||
```
|
```
|
||||||
127.0.0.1 dev.r2c.net
|
127.0.0.1 dev.docker-grav.net
|
||||||
```
|
```
|
||||||
configure your apache vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
|
configure your apache vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
|
||||||
```
|
```
|
||||||
<Virtualhost *:80>
|
<Virtualhost *:80>
|
||||||
ServerName dev.r2c.net
|
ServerName dev.docker-grav.net
|
||||||
ProxyPass / http://127.0.0.1:8880/
|
ProxyPass / http://127.0.0.1:8880/
|
||||||
ProxyPassReverse / http://127.0.0.1:8880/
|
ProxyPassReverse / http://127.0.0.1:8880/
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
@@ -50,9 +50,9 @@ sudo docker-compose up -d
|
|||||||
```
|
```
|
||||||
### loging in
|
### loging in
|
||||||
```
|
```
|
||||||
sudo docker exec -it r2c-grav_php_1 bash
|
sudo docker exec -it docker-grav_php_1 bash
|
||||||
```
|
```
|
||||||
|
|
||||||
## Visualize
|
## Visualize
|
||||||
You can now visit http://dev.2018.unesaisongraphique.fr or simply http://localhost:8880 on your browser
|
You can now visit http://dev.docker-grav.fr or simply http://localhost:8880 on your browser
|
||||||
After the first run
|
After the first run
|
||||||
|
|||||||
Reference in New Issue
Block a user