mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-01-18 13:10:37 +00:00
80216c5fdc
* Add environment variables for Database configuration. * Install postgres and mysql dependencies. * Test refactoring * Run tests for prosody with postgres and also for prosody with sqlite. * Add tests that check if postgres or sqlite is used.
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
version: '3.7'
|
|
|
|
services:
|
|
prosody:
|
|
image: prosody
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5000:5000"
|
|
- "5222:5222"
|
|
- "5223:5223"
|
|
- "5269:5269"
|
|
- "5281:5281"
|
|
environment:
|
|
DOMAIN: localhost
|
|
E2E_POLICY_WHITELIST: "admin@localhost, user1@localhost"
|
|
LOG_LEVEL: debug
|
|
PROSODY_ADMINS: "admin@localhost, admin2@localhost"
|
|
volumes:
|
|
- ./certs:/usr/local/etc/prosody/certs
|
|
|
|
prosody_postgres:
|
|
image: prosody
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5000:5000"
|
|
- "5222:5222"
|
|
- "5223:5223"
|
|
- "5269:5269"
|
|
- "5281:5281"
|
|
environment:
|
|
DOMAIN: localhost
|
|
E2E_POLICY_WHITELIST: "admin@localhost, user1@localhost"
|
|
LOG_LEVEL: debug
|
|
PROSODY_ADMINS: "admin@localhost, admin2@localhost"
|
|
#DB_DRIVER: "MySQL"
|
|
DB_DRIVER: "PostgreSQL"
|
|
DB_DATABASE: "prosody"
|
|
DB_HOST: "postgres"
|
|
DB_PORT: "5432"
|
|
DB_USERNAME: "prosody"
|
|
DB_PASSWORD: "prosody"
|
|
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
|