Created
November 25, 2024 17:28
-
-
Save ajeetraina/14594f3d772bfc112ef8502632b63402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
db: | |
image: postgres:17 | |
environment: | |
POSTGRES_DB: ${DATABASE_NAME} | |
POSTGRES_USER: ${DATABASE_USERNAME} | |
POSTGRES_PASSWORD: ${DATABASE_PASSWORD} | |
ports: | |
- "5432:5432" | |
env_file: | |
- .env | |
django-web: | |
build: . | |
container_name: django-docker | |
ports: | |
- "8000:8000" | |
depends_on: | |
- db | |
environment: | |
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY} | |
DEBUG: ${DEBUG} | |
DJANGO_LOGLEVEL: ${DJANGO_LOGLEVEL} | |
DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS} | |
DATABASE_ENGINE: ${DATABASE_ENGINE} | |
DATABASE_NAME: ${DATABASE_NAME} | |
DATABASE_USERNAME: ${DATABASE_USERNAME} | |
DATABASE_PASSWORD: ${DATABASE_PASSWORD} | |
DATABASE_HOST: ${DATABASE_HOST} | |
DATABASE_PORT: ${DATABASE_PORT} | |
env_file: | |
- .env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PostgreSQL: