Skip to content

Commit

Permalink
Allow localhost server
Browse files Browse the repository at this point in the history
  • Loading branch information
Dukuze authored and Dukuze committed Nov 21, 2023
1 parent 4bd65ad commit 07f2941
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion btre/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['0.0.0.0']
ALLOWED_HOSTS = ['0.0.0.0','localhost']


# Application definition
Expand Down
11 changes: 4 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@ version: '3'

services:
web:
build: .
command: gunicorn your_project_name.wsgi:application -b 0.0.0.0:7000
volumes:
- .:/app
image: dudosart/btre-pro
ports:
- "7000:7000"
- "8080:7000"
depends_on:
- db
env_file:
- .env

db:
image: postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_DB: btredb-container
POSTGRES_USER: postgres
Expand Down

0 comments on commit 07f2941

Please sign in to comment.