No Description

Bachir Soussi Chiadmi f42499acdd installed admin module 1 month ago
Docker 46c3a55d46 first commit 1 month ago
log 46c3a55d46 first commit 1 month ago
public_html @ 06841bf527 f42499acdd installed admin module 1 month ago
.env 46c3a55d46 first commit 1 month ago
.gitignore 46c3a55d46 first commit 1 month ago
.gitmodules 6abd9e1fea fixed gitmodules 1 month ago
LICENSE 46c3a55d46 first commit 1 month ago
README.md 1918d7cd95 added fixperms script 1 month ago
docker-compose.yml 943e93b068 changed nginx port 1 month ago

README.md

USG PORTAIL

USG Portail 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-portail.git

Hosts and reverse proxy

add to your /etc/hosts :

127.0.0.1	dev.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.unesaisongraphique.fr
   ProxyPass / http://127.0.0.1:8882/
   ProxyPassReverse / http://127.0.0.1:8882/
   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 grav_usg_portail_php_1 bash

fixing permissions

from the grav_usg_portail_php_1 run the fixeperms.sh script

sudo docker exec -it grav_usg_portail_php_1 bash
chmod +x fixperms.sh
./fixeperms.sh

Visualize

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