14ff62fb4d8515c4d304a1a5e3cc2cb566569210
docker
Docker php 7.3fpm nginx
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-grav.git
Hosts and reverse proxy
add to your /etc/hosts :
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
<Virtualhost *:80>
ServerName dev.docker-grav.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 docker-grav_php_1 bash
Visualize
You can now visit http://dev.docker-grav.fr or simply http://localhost:8880 on your browser After the first run
Languages
Dockerfile
88.7%
Shell
11.3%