Code source of gonetwork website 2022 http://gonetwork.usthb-celec.com
- Download the repository.
- Change docker-compose.example.yml to docker-compose.yml
- Change database configuration : https://github.com/CELEC-USTHB-CLUB/gonetwork2022/blob/main/docker-compose.example.yml#L18
- Run docker build and docker-compose up .
- log into php image : docker-compose exec php bash
- cd site/
- change .env.example to .env
- Update database config in .env file.
- Run composer install & composer dump -o
- The application now is running on port 81.
With HAPROXY we could redirect requests from gonetwork.usthb-celec.com to the application .
frontend http
bind :80
mode http
option httplog
timeout connect 5000
timeout client 50000
timeout server 50000
acl gonetworkdomain hdr(host) -i gonetwork.usthb-celec.com
use_backend gonetwork if gonetworkdomain
default_backend website
backend website
mode http
server website 0.0.0.0:81 check
backend gonetwork
mode http
server gonetworkweb 0.0.0.0:82 check