Skip to content

Commit db29108

Browse files
committed
TN-12: Fixed docker-compose.yml
1 parent a7eb078 commit db29108

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ __View and edit entry of journal__
6464
How to run
6565
----------
6666

67-
### Developed mode
67+
### Development mode
6868

6969
Install [Python 3](https://www.python.org/)
7070

71+
Install [PosgreSQL](https://www.postgresql.org/)
72+
7173
Install dependencies
7274

7375
```bash
@@ -78,6 +80,7 @@ pipenv install --dev
7880
Create DB (once)
7981

8082
```bash
83+
createdb -U postgres -O <username> tabular_notes
8184
pipenv run ./manage.py migrate
8285
```
8386

docker-compose.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@ version: '3'
22

33
services:
44
app:
5-
container_name: tabular-notes_app
5+
container_name: tabular-notes-app
66
build: .
7+
image: phpusr/tabular-notes
78
restart: unless-stopped
89
environment:
910
- DEBUG=False
1011
- DATABASE_URL=postgres://tabular_notes:passw0rd@db:5432/tabular_notes
12+
ports:
13+
- 8001:8000
1114
depends_on:
1215
- db
1316

1417
db:
15-
container_name: tabular-notes_db
18+
container_name: tabular-notes-db
1619
image: postgres:11.5-alpine
1720
restart: unless-stopped
1821
environment:

0 commit comments

Comments
 (0)