portier/docker-compose.yaml

62 lines
1.5 KiB
YAML
Raw Permalink Normal View History

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:
2024-02-28 21:21:39 +01:00
image: ossrs/srs:6
ports:
- 1935:1935
- 8888:8888
volumes:
2024-02-25 21:23:21 +01:00
- ./srs.conf:/usr/local/srs/conf/docker.conf:ro