42 lines
985 B
YAML
42 lines
985 B
YAML
version: '2.4'
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
ports:
|
|
- 80:80
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
environment:
|
|
- DEBUG=1
|
|
- "SECRET_KEY=D4mn1t_Ch4nG3_M3!1!!"
|
|
- SQL_ENGINE=django.db.backends.postgresql
|
|
- SQL_USER=portier
|
|
- SQL_PASSWORD=portier
|
|
- SQL_DATABASE=portier
|
|
- SQL_HOST=postgres
|
|
- SQL_PORT=5432
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- "EMAIL_FROM=${EMAIL_FROM}"
|
|
- "EMAIL_HOST=${EMAIL_HOST}"
|
|
- "EMAIL_HOST_USER=${EMAIL_HOST_USER}"
|
|
- "EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}"
|
|
- "ADVERTISED_RTMP_HOSTS=localhost:1935 laserpope:1234"
|
|
redis:
|
|
image: redis:7-alpine
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_PASSWORD: "portier"
|
|
POSTGRES_USER: "portier"
|
|
POSTGRES_DB: "portier"
|
|
srs:
|
|
image: ossrs/srs:4
|
|
ports:
|
|
- 1935:1935
|
|
- 8888:8888
|
|
volumes:
|
|
- ./srs.conf:/usr/local/srs/conf/docker.conf:ro
|