WIP Add environment variables for Database configuration. TODO test it with postgres

This commit is contained in:
Sara Aimée Smiseth 2021-05-01 13:04:23 +02:00
parent 5bcf0fd3d0
commit d3f5a603e5
6 changed files with 45 additions and 7 deletions

View file

@ -15,6 +15,8 @@ services:
E2E_POLICY_WHITELIST: "admin@localhost, user1@localhost"
LOG_LEVEL: debug
PROSODY_ADMINS: "admin@localhost, admin2@localhost"
#DB_DRIVER: "SQLite3"
#DB_DATABASE: "prosody.sqlite"
extra_hosts:
- "conference.localhost:127.0.0.1"
- "pubsub.localhost:127.0.0.1"
@ -22,3 +24,15 @@ services:
- "upload.localhost:127.0.0.1"
volumes:
- ./certs:/usr/local/etc/prosody/certs
depends_on:
- postgres
postgres:
image: postgres:13-alpine
restart: unless-stopped
environment:
POSTGRES_DB: prosody
POSTGRES_USER: prosody
POSTGRES_PASSWORD: prosody
#volumes:
#- ./postgres-data:/var/lib/postgresql/data

View file

@ -1,3 +1,3 @@
aioxmpp==0.11.0
pip-chill==1.0.0
pytest-asyncio==0.14.0
aioxmpp==0.12.2
pip-chill==1.0.1
pytest-asyncio==0.15.1