File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,15 @@ Für die Authentisierung wird ein Session Cookie oder Basic Auth akzeptiert.
21
21
Voraussetzungen:
22
22
23
23
- Python 3
24
- - Pip
25
- - PostgreSQL
24
+ - Docker
26
25
27
- Datenbank :
26
+ Container mit PostgreSQL starten :
28
27
29
- createdb interna
28
+ docker run -d --name interna-pg \
29
+ -e POSTGRES_DB=interna \
30
+ -e POSTGRES_USER=interna \
31
+ -e POSTGRES_PASSWORD=interna-dev-password \
32
+ -p 127.0.0.1:5432:5432 docker.io/postgres:14-alpine
30
33
31
34
[ Virtualenv] ( https://docs.python.org/3/library/venv.html ) erstellen:
32
35
@@ -45,7 +48,7 @@ Umgebungsvariablen definieren (`.env` Datei wird automatisch geladen):
45
48
46
49
echo "DJANGO_DEBUG=True" >> .env
47
50
echo "SITE_DOMAIN='http://localhost:8000'" >> .env
48
- echo "DATABASE_URL='postgres://localhost/interna'" >> .env
51
+ echo "DATABASE_URL='postgres://interna:interna-dev-password@ localhost/interna'" >> .env
49
52
50
53
Datenbank migrieren:
51
54
You can’t perform that action at this time.
0 commit comments