Skip to content

Commit

Permalink
Fix postgres in Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh authored Apr 2, 2020
1 parent 2ca6cb6 commit f1f08a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ version: "3"

services:
db:
image: postgres:10
image: postgres:12
environment:
POSTGRES_PASSWORD: postgres
web:
build: .
command: python -Wd manage.py runserver 0.0.0.0:8000
environment:
DEBUG: "true"
SECRET_KEY: "not secure only use for development"
DATABASE_URL: "psql://postgres@db:5432/postgres"
DATABASE_URL: "psql://postgres:postgres@db:5432/postgres"
volumes:
- .:/code
ports:
Expand Down

0 comments on commit f1f08a8

Please sign in to comment.