diff --git a/config/settings/local.py b/config/settings/local.py index c9b2e60..50581c9 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -27,7 +27,7 @@ INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', ] -if os.environ.get('USE_DOCKER') == 'yes': +if os.path.isfile('/.dockerenv'): ip = socket.gethostbyname(socket.gethostname()) INTERNAL_IPS += [ip[:-1] + "1"] diff --git a/docker-compose.yml b/docker-compose.yml index ef3816d..ade46bb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,6 @@ services: - POSTGRES_PASSWORD=poznaj - POSTGRES_DB=poznajdb - DATABASE_URL=postgres://poznaj:poznaj@postgres:5432/poznajdb - - USE_DOCKER=yes volumes: - .:/app ports: