Няма описание

Bachir Soussi Chiadmi 761afbbbca Merge branch 'master' of https://figureslibres.io/gogs/kevin/docker-r2c-grav преди 6 години
Docker 9f569176f3 run docker преди 6 години
log 4c1ed5861f added gitkeep in log/nginx преди 6 години
public_html @ 4b8285e1d2 a3349ea8cd supprcache преди 6 години
.env 4042e873fc maj преди 6 години
.gitignore 3d64c4bc00 firstcommit преди 6 години
.gitmodules 3d64c4bc00 firstcommit преди 6 години
README.md c2eb4e113c modif readme преди 6 години
docker-compose.yml 3d64c4bc00 firstcommit преди 6 години

README.md

R2C

r2C powered by grav in docker environement (nginx, php:5.6-fpm)

Install docker

sudo pacman -S docker docker-compose docker-machine

Clone this repos

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

Hosts and reverse proxy

add to your /etc/hosts :

127.0.0.1	dev.r2c.net

configure your apache vhosts to add a reverse proxy that will redirect the dev.materio.com to our container

<Virtualhost *:80>
   ServerName dev.r2c.net
   ProxyPass / http://127.0.0.1:8880/
   ProxyPassReverse / http://127.0.0.1:8880/
   ProxyRequests Off
</Virtualhost>

Docker

start daemon

launch the docker daemon

sudo systemctl start docker

build

only before the first run (may take some time)

sudo docker-compose build

run

then each time you want to launch the app

sudo docker-compose up -d

loging in

sudo docker exec -it r2c-grav_php_1 bash

Visualize

You can now visit http://dev.2018.unesaisongraphique.fr or simply http://localhost:8880 on your browser After the first run