Skip to content

Commit

Permalink
omitted code blocks with postgres ports & comments
Browse files Browse the repository at this point in the history
  • Loading branch information
snoop2head committed Apr 15, 2020
1 parent 9a96985 commit 920975c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions compose/django.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,12 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi
9. Add the following configuration to the file.

```none
# docker-compose.yml
version: '3'
services:
db:
image: postgres
ports: #add line.
- '5432'
environment: # add line.
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
Expand Down Expand Up @@ -155,7 +151,7 @@ In this section, you set up the database connection for Django.
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD': 'postgres', #add line.
'PASSWORD': 'postgres',
'HOST': 'db',
'PORT': 5432,
}
Expand Down

0 comments on commit 920975c

Please sign in to comment.