Verified Commit b73fc2c9 authored by Jae Beojkkoch's avatar Jae Beojkkoch

Ajout de OpenStreamingSoftware en beta.

parent 0bdcb7a9
version: '2.1'
services:
redis:
image: redis:latest
osp:
image: deamos/openstreamingplatform:latest
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostname}
- traefik.port=80
- traefik.frontend.headers.STSSeconds=315360000
- traefik.frontend.headers.browserXSSFilter=true
- traefik.frontend.customResponseHeaders=Server:www||X-Powered-By:www
environment:
- REDIS_HOST=redis
- FLASK_SECRET
- FLASK_SALT
- OSP_ALLOWREGISTRATION
- OSP_REQUIREVERIFICATION
- DB_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_USER}
ports:
- "${ipv4}:1935:1935"
- "${ipv6}:1935:1935"
db:
image: postgres:11
volumes:
- ./db:/var/lib/postgresql/data
- ./wal:/wal
- ./postgresql.conf:/var/lib/postgresql/data/postgresql.conf
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
networks:
default:
enable_ipv6: true
driver: bridge
ipam:
- subnet: "${prefix}/80"
gateway: "${prefix}1"
# Base settings
listen_addresses = '*'
max_connections = 20
shared_buffers = 128MB
dynamic_shared_memory_type = posix
# Backups
wal_level = archive
max_wal_senders = 2
archive_mode = on
archive_command = 'test ! -f /wal/%f && cp %p /wal/%f'
# Defaults
log_timezone = 'UTC'
datestyle = 'iso, mdy'
timezone = 'UTC'
lc_messages = 'en_US.utf8'
lc_monetary = 'en_US.utf8'
lc_numeric = 'en_US.utf8'
lc_time = 'en_US.utf8'
default_text_search_config = 'pg_catalog.english'
# Extended options
shared_preload_libraries = 'pg_stat_statements'
pg_stat_statements.track = all
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment