2020-04-15 19:17:06 +00:00
|
|
|
# https://gitlab.com/Deamos/flask-nginx-rtmp-manager/-/blob/master/docker-compose.yml
|
2020-04-15 20:23:21 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
2020-04-15 19:17:06 +00:00
|
|
|
services:
|
2020-04-15 20:23:21 +00:00
|
|
|
redis:
|
2020-04-20 01:26:13 +00:00
|
|
|
image: redis:alpine
|
2020-04-15 20:23:21 +00:00
|
|
|
container_name: ospredis
|
|
|
|
expose:
|
|
|
|
- 6379
|
|
|
|
app:
|
|
|
|
image: deamos/openstreamingplatform
|
|
|
|
ports:
|
|
|
|
- "1935:1935/tcp"
|
2020-04-15 20:25:22 +00:00
|
|
|
- "127.0.0.1:8585:80/tcp"
|
|
|
|
- "127.0.0.1:8553:443/tcp"
|
2020-04-15 20:23:21 +00:00
|
|
|
environment:
|
2020-04-15 22:18:19 +00:00
|
|
|
- REDIS_HOST=ospredis
|
2020-04-15 20:23:21 +00:00
|
|
|
- REDIS_PORT=6379
|
|
|
|
- REDIS_PASSWORD=""
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- "${STORAGE_DIR}:/var/www"
|
|
|
|
- "${DATABASE_DIR}:/opt/osp/db"
|
|
|
|
- "${NGINX_DIR}:/usr/local/nginx/conf"
|
2020-04-15 22:02:02 +00:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2020-04-15 20:23:21 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "${LOG_MAX_SIZE:-5m}"
|
|
|
|
max-file: "${LOG_MAX_FILE:-5}"
|