FIT3170-FY-Project-7 / RABIT-COMMON

Common repository of the RABIT project, for documentation storage and cross-component interaction.
https://rabit2022.cloud.edu.au/plots
ISC License
3 stars 1 forks source link

Docker container configuration #2

Closed megascrapper closed 2 years ago

megascrapper commented 2 years ago

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.