Skip to content

Commit 6dbc658

Browse files
authored
Update db setup of README.md
Behaviour change in docker-library/postgres newest version. See [docker-library/postgres issue(pycontw#681)](docker-library/postgres#681)
1 parent f2d5a7b commit 6dbc658

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ This repository serves the website of PyCon TW, Python Conference Taiwan. This p
1818

1919
#### Database - Docker (Optional)
2020

21+
Write database password in .env:
22+
23+
POSTGRES_PASSWORD=somepassword
24+
25+
Define .env location in docker-compose-dev.yml:
26+
27+
env_file:
28+
- .env
29+
2130
Create and start the database for development:
2231

2332
docker-compose -f docker-compose-dev.yml up
@@ -66,6 +75,11 @@ Then edit the `SECRET_KEY` line in `local.env`, replacing `{{ secret_key }}` int
6675

6776
If you’re using a database for the first time, create a database named `pycontw2016` owned by the database user specified in the env file:
6877

78+
> Enter pycontw_db_1 container
79+
```cmd
80+
docker exec -it pycontw_db_1 su - postgres
81+
```
82+
6983
```sql
7084
# Replace "postgres" with your specified role.
7185
create database pycontw2016 with owner = postgres;

0 commit comments

Comments
 (0)