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

[FEATURE] : create a Docker Compose file #28

Open
OlgaYasn opened this issue Nov 4, 2024 · 0 comments
Open

[FEATURE] : create a Docker Compose file #28

OlgaYasn opened this issue Nov 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@OlgaYasn
Copy link

OlgaYasn commented Nov 4, 2024

✨ Description

Create a Docker Compose file to simplify the setup and installation of our project. This Docker Compose should include services for the backend, frontend, PostgreSQL database, and pgAdmin.

🚀 Motivation

This feature will streamline the development environment setup for new developers and ensure consistency across different environments. It will make it easier to get the project up and running quickly.

📝 Proposed Solution

  1. Backend Service:
  • Create a Dockerfile for the backend application.
  • Define the backend service in the Docker Compose file.
  • Ensure the backend service depends on the database service.
  1. Frontend Service:
  • Create a Dockerfile for the frontend application.
  • Define the frontend service in the Docker Compose file.
  • Ensure the frontend service is accessible on a specified port.
  1. Database Service:
  • Use the official PostgreSQL image.
  • Define the database service in the Docker Compose file.
  • Set up environment variables for database configuration (e.g., POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB).
  1. pgAdmin Service:
  • Use the official pgAdmin image.
  • Define the pgAdmin service in the Docker Compose file.
  • Set up environment variables for pgAdmin configuration (e.g., PGADMIN_DEFAULT_EMAIL, PGADMIN_DEFAULT_PASSWORD).
  • Ensure pgAdmin can connect to the PostgreSQL database service.
  1. Volumes and Networks:
  • Define volumes for persistent data storage.
  • Set up networks to allow communication between services.

🔄 Alternatives

Manually setting up each service individually, which can be time-consuming and prone to errors.
Using separate Docker Compose files for each service, which could complicate the setup process.

📸 Screenshots

N/A

💻 Environment

  • OS: [e.g., Windows, macOS, Linux]
  • Browser: [e.g., Chrome, Safari]
  • Version: [e.g., 22]
  • Vitality v6y Version: [e.g., 1.0.0]

📝 Additional Context

N/A

🔗 Relevant Links (if any)

N/A

@OlgaYasn OlgaYasn added the enhancement New feature or request label Nov 4, 2024
@OlgaYasn OlgaYasn changed the title [FEATURE] [FEATURE] : create a Docker Compose file Nov 5, 2024
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

1 participant