Skip to content

Commit

Permalink
Tests: can query postgres by name, no need to hardcode IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemek Kaminski committed Oct 21, 2015
1 parent 7c73fc7 commit 9a28c4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ postgresql:
djorm:
build: .
environment:
- POSTGRES_HOST=192.168.59.103
- POSTGRES_USER=postgres
links:
- postgresql
Expand Down
2 changes: 1 addition & 1 deletion testing/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'NAME': 'test',
'USER': os.environ.get('POSTGRES_USER', 'postgres'),
'PASSWORD': '',
'HOST': os.environ.get('POSTGRES_HOST', 'localhost'),
'HOST': 'postgresql',
'PORT': '',
}
}
Expand Down

0 comments on commit 9a28c4e

Please sign in to comment.