Skip to content

Commit

Permalink
giving environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kaan authored and kaan committed Nov 23, 2024
1 parent 18be31f commit 8eef93b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
3 changes: 1 addition & 2 deletions backend/app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.16 on 2024-11-23 14:38
# Generated by Django 4.2.16 on 2024-11-23 16:15

from django.conf import settings
import django.contrib.postgres.fields
Expand Down Expand Up @@ -166,7 +166,6 @@ class Migration(migrations.Migration):
('time_taken', models.IntegerField(default=0)),
('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='progress', to='app.question')),
('quiz_progress', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='question_progress', to='app.quizprogress')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='question_progress', to=settings.AUTH_USER_MODEL)),
],
options={
'unique_together': {('question', 'quiz_progress')},
Expand Down
17 changes: 0 additions & 17 deletions backend/app/migrations/0002_remove_questionprogress_user.py

This file was deleted.

8 changes: 4 additions & 4 deletions docker-compose-dev-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ services:
container_name: postgres_db
restart: always
environment:
POSTGRES_DB: db
POSTGRES_USER: halil
POSTGRES_PASSWORD: 123
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ./dbdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U halil -d db"]
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 10s
retries: 5
Expand Down

0 comments on commit 8eef93b

Please sign in to comment.