|
6 éve | |
---|---|---|
Docker | 6 éve | |
.env | 6 éve | |
.gitignore | 6 éve | |
.gitmodules | 6 éve | |
README.md | 6 éve | |
docker-compose.yml | 6 éve |
USG 2018 powered by grav in docker environement (nginx, php:5.6-fpm)
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 esadhar.net https://esadhar.net/gogs/bachir/docker-usg-2018.git
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>
launch the docker daemon
sudo systemctl start docker
only before the first run (may take some time)
sudo docker-compose build
then each time you want to launch the app
sudo docker-compose up -d
sudo docker exec -it gravusg2018_php_1 bash
You can now visit http://dev.2018.unesaisongraphique.fr or simply http://localhost:8880 on your browser After the first run