Add postgres, sqlite not working
This commit is contained in:
parent
b21a1a575e
commit
48ce072d3a
@ -10,8 +10,7 @@ services:
|
|||||||
image: wger/server:latest
|
image: wger/server:latest
|
||||||
container_name: wger_web
|
container_name: wger_web
|
||||||
environment:
|
environment:
|
||||||
- DJANGO_DB_ENGINE=django.db.backends.sqlite3
|
- DJANGO_DB_ENGINE=django.db.backends.postgresql # Within the container, so be careful
|
||||||
- DJANGO_DB_DATABASE=/home/wger/db/database.sqlite # Within the container, so be careful
|
|
||||||
- DJANGO_DB_DATABASE=wger
|
- DJANGO_DB_DATABASE=wger
|
||||||
- DJANGO_DB_USER=wger
|
- DJANGO_DB_USER=wger
|
||||||
- DJANGO_DB_PASSWORD=wger
|
- DJANGO_DB_PASSWORD=wger
|
||||||
@ -63,6 +62,24 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:15-alpine
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=wger
|
||||||
|
- POSTGRES_PASSWORD=wger
|
||||||
|
- POSTGRES_DB=wger
|
||||||
|
volumes:
|
||||||
|
- /docker/appdata/wger/db:/var/lib/postgresql/data/
|
||||||
|
expose:
|
||||||
|
- 5432
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready -U wger
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
start_period: 30s
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:stable
|
image: nginx:stable
|
||||||
container_name: wger_nginx
|
container_name: wger_nginx
|
||||||
|
Loading…
Reference in New Issue
Block a user