Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion course_django/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
'NAME': 'course_db',
'USER': 'course_user',
'PASSWORD': 'course_password',
'HOST': 'db', # назва сервісу PostgreSQL у docker-compose
'HOST': 'localhost', # назва сервісу PostgreSQL у docker-compose
'PORT': 5432,
},
}
Expand Down
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,18 @@ services:
redis:
condition: service_healthy

pgadmin:
image: dpage/pgadmin4:latest
depends_on:
db:
condition: service_healthy
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: admin123
ports:
- "5050:80"
volumes:
- pgadmin-data:/var/lib/pgadmin

volumes:
pgadmin-data:
Loading