NIAEFEUP / feup-exchange-backend

MIT License
3 stars 0 forks source link

Added full backend boilerpate with Docker #11

Closed EduRibeiro00 closed 3 years ago

EduRibeiro00 commented 3 years ago

Added full backend boilerplate, with Docker support. This PR includes the setup of two environments, dev (for development of the application) and prod (for production), each with their respective Dockerfiles and docker-compose files.

Dev environment uses the following containers: Django, PostgreSQL, pgAdmin. Prod environment uses the following containers: Django, PostgreSQL, pgAdmin, nginx.

Please test if the code is working properly both in the development environment docker-compose up --buildand in the production environment docker-compose -f docker-compose.prod.yml up --build.

Closes issues #1, #2.

FilipePintoReis commented 3 years ago

The server doesn't seem to be working, but maybe I'm doing something wrong?

feupexchange_django | standard_init_linux.go:219: exec user process caused: no such file or directory

FilipePintoReis commented 3 years ago

I will accept this PR on the condition that before it is sent to production we make the .env.prod invisible.

EduRibeiro00 commented 3 years ago

With the recent changes to the Django Dockerfiles, the server should be working properly. The .env.prod file should serve as a template to insert the actual environment variables that are used in the project; those should not be pushed to the remote repository.

@NIAEFEUP/feup-exchange please review the PR again and make sure you can start the backend services with no problems.