Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize full application #116

Open
9 tasks
brijsiyag opened this issue Jul 4, 2022 · 2 comments
Open
9 tasks

Dockerize full application #116

brijsiyag opened this issue Jul 4, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@brijsiyag
Copy link
Contributor

brijsiyag commented Jul 4, 2022

Dockerizing full application for development and production.

For development -

  • Dockerfile.dev for UI
  • Create docker-compose.yml
  • Using nginx
  • Using SMTP4DEV or other smtp email server for mailing services in development.
  • A PostgreSQL server for development also( Yet to discuss ).
  • Make GitHub Actions to use containers for CI/CT.

For production -

  • Dockerfile with use of nginx for serving build files.
  • Dockerfile running gunicorn for Django Application.
  • PostgreSQL or other db service provider.
@brijsiyag brijsiyag added the enhancement New feature or request label Jul 4, 2022
@brijsiyag
Copy link
Contributor Author

Will we use a single container for production, or multiple?

@Samy-33
Copy link
Member

Samy-33 commented Jul 5, 2022

Will we use a single container for production, or multiple?

Keep two containers. One for the application (UI and API) another for the DB.

API will store staticfiles (uploaded images etc) in a volume attached to the application container.
DB will store the data in a volume attached to the DB container.

brijsiyag added a commit to brijsiyag/gymkhana that referenced this issue Jul 11, 2022
Samy-33 pushed a commit that referenced this issue Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants