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

Initialization docker #11

Merged
merged 4 commits into from
Mar 24, 2025
Merged

Initialization docker #11

merged 4 commits into from
Mar 24, 2025

Conversation

nattzp
Copy link

@nattzp nattzp commented Mar 24, 2025

Docker Setup for Django Backend and PostgreSQL Database

  • Added backend.Dockerfile to containerize the Django backend application. This Dockerfile installs the required dependencies and runs the Django development server on port 8000.

Configured docker-compose.yml to define two services:

  • db: PostgreSQL database configured with environment variables loaded from a .env file, and persistent storage using a named volume (pg_data)
  • backend: Django backend service that depends on the database, exposes port 8000 for accessing the app, and mounts the project directory for live code updates

Also added instructions in the readme file!

@nattzp nattzp requested a review from noraangeus March 24, 2025 19:30
@nattzp nattzp changed the base branch from main to dev March 24, 2025 19:33
Copy link
Contributor

@noraangeus noraangeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, älskar när saker kan köra sig själva

@noraangeus noraangeus merged commit 6efa2cb into dev Mar 24, 2025
1 check passed
@noraangeus noraangeus deleted the initialization_docker branch March 24, 2025 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants