portier/docker-compose.yaml

68 lines
1.7 KiB
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}"
celerybeat:
build: .
depends_on:
- postgres
- redis
environment:
- COMPONENT=celerybeat
- 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}"
redis:
image: redis:7-alpine
postgres:
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: "portier"
POSTGRES_USER: "portier"
POSTGRES_DB: "portier"
srs:
image: ossrs/srs:6
ports:
- 1935:1935
- 8888:8888
volumes:
- ./srs.conf:/usr/local/srs/conf/docker.conf:ro
concierge:
image: git.chaoswest.tv/cwtv/concierge:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
CONCIERGE_ENDPOINT: "http://app"
CONCIERGE_IDENTITY: "ee463ecf-a0cf-4ca1-a1d6-2cbf1726d59d"