Added docker-compose configuration to allow easy deployment of instances.
The compose file will create 2 containers: frontend and backend. In the future when we have a proper backend it will also create the appropriate MySQL container and database volume.
Frontend container uses an nginx configuration in docker/frontend.nginx. No HTTPS set up since I expect a true production instance would utilise a reverse proxy with proper routing and HTTPS handling.
The backend container uses volume bind from ./RABIT-FRONTEND/uploads to /usr/share/nginx/html to serve backend files.
External port number is 8080 for frontend and 8000 for backend. There is really no good reason why I chose that port.
Added docker-compose configuration to allow easy deployment of instances.
The compose file will create 2 containers:
frontend
andbackend
. In the future when we have a proper backend it will also create the appropriate MySQL container and database volume.Frontend container uses an nginx configuration in
docker/frontend.nginx
. No HTTPS set up since I expect a true production instance would utilise a reverse proxy with proper routing and HTTPS handling.The backend container uses volume bind from
./RABIT-FRONTEND/uploads
to/usr/share/nginx/html
to serve backend files.External port number is 8080 for frontend and 8000 for backend. There is really no good reason why I chose that port.