No Description

Bachir Soussi Chiadmi 83061395ab improved readme 7 months ago
Docker 95b4143f57 first commit : grav is running 8 months ago
log 7d91fb7769 fixed nginx log error 8 months ago
public_html @ 96fa91fb6b 426583869e updated public_html 8 months ago
.env 95b4143f57 first commit : grav is running 8 months ago
.gitignore 7d91fb7769 fixed nginx log error 8 months ago
.gitmodules 95b4143f57 first commit : grav is running 8 months ago
README.md 83061395ab improved readme 7 months ago
docker-compose.yml 95b4143f57 first commit : grav is running 8 months ago

README.md

USG 2018

USG 2018 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 esadhar.net https://esadhar.net/gogs/bachir/docker-usg-2018.git

Hosts and reverse proxy

add to your /etc/hosts :

127.0.0.1	dev.2018.unesaisongraphique.fr

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

<Virtualhost *:80>
   ServerName dev.2018.unesaisongraphique.fr
   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 gravusg2018_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