updated readme
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# figureslibres.cc
|
||||
# muntadas-protocols
|
||||
|
||||
Figureslibres.cc powered by grav in docker environement (nginx, php:7.0-fpm)
|
||||
muntadas-protocols powered by grav in docker environement (nginx, php:7.3-fpm)
|
||||
|
||||
## 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
|
||||
|
||||
```
|
||||
git clone --recursive -o figureslibres.io https://figureslibres.io/gogs/bachir/docker-figureslibres.cc-grav.git
|
||||
git clone --recursive -o figureslibres.io https://figureslibres.io/gogs/bachir/docker-muntadas-protocols.git
|
||||
```
|
||||
|
||||
## Hosts and reverse proxy
|
||||
|
||||
add to your /etc/hosts :
|
||||
```
|
||||
127.0.0.1 dev.figureslibres.cc
|
||||
127.0.0.1 dev.muntadas-protocols.figli.io
|
||||
```
|
||||
configure your apache vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
|
||||
configure your apache/nginx vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
|
||||
```
|
||||
<Virtualhost *:80>
|
||||
ServerName dev.figuresmibres.cc
|
||||
ServerName dev.muntadas-protocols.figli.io
|
||||
ProxyPass / http://127.0.0.1:8882/
|
||||
ProxyPassReverse / http://127.0.0.1:8882/
|
||||
ProxyRequests Off
|
||||
@@ -41,26 +41,28 @@ sudo systemctl start docker
|
||||
### build
|
||||
only before the first run (may take some time)
|
||||
```
|
||||
sudo docker-compose build
|
||||
make build
|
||||
```
|
||||
### run
|
||||
then each time you want to launch the app
|
||||
```
|
||||
sudo docker-compose up -d
|
||||
make up
|
||||
```
|
||||
### loging in
|
||||
```
|
||||
sudo docker exec -it grav_figureslibres.cc_php_1 bash
|
||||
make exec_php
|
||||
```
|
||||
|
||||
### fixing permissions
|
||||
from the ```grav_figureslibres.cc_php_1``` run the fixeperms.sh script
|
||||
run the fixeperms.sh script from the php container
|
||||
```
|
||||
sudo docker exec -it grav_figureslibres.cc_php_1 bash
|
||||
make exec_php
|
||||
chmod +x fixperms.sh
|
||||
./fixeperms.sh
|
||||
```
|
||||
|
||||
## Visualize
|
||||
You can now visit http://dev.figureslibres.cc or simply http://localhost:8882 on your browser
|
||||
After the first run
|
||||
You can now visit http://dev.muntadas-protocols.figli.io or simply http://localhost:8882 on your browser
|
||||
|
||||
## online
|
||||
https://muntadas-protocols.figli.io
|
||||
|
||||
Reference in New Issue
Block a user