2021-11-09 20:02:14 +00:00
|
|
|
version: "3"
|
2021-11-09 17:19:55 +00:00
|
|
|
services:
|
|
|
|
server:
|
|
|
|
build:
|
|
|
|
context: .
|
2021-11-09 23:20:00 +00:00
|
|
|
entrypoint: poetry run python src/server.py
|
2021-11-10 23:39:47 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- REDIS_HOST=$REDIS_HOST
|
|
|
|
- REDIS_PORT=$REDIS_PORT
|
|
|
|
- WEBSOCKET_LISTEN=$WEBSOCKET_LISTEN
|
|
|
|
- WEBSOCKET_PORT=$WEBSOCKET_PORT
|
2021-11-09 17:19:55 +00:00
|
|
|
ports:
|
2021-11-10 23:39:47 +00:00
|
|
|
- $WEBSOCKET_PORT:$WEBSOCKET_PORT
|
2021-11-09 19:56:57 +00:00
|
|
|
depends_on:
|
2021-11-10 23:44:57 +00:00
|
|
|
- redis
|
2021-11-09 17:19:55 +00:00
|
|
|
emulator:
|
|
|
|
build:
|
|
|
|
context: .
|
2021-11-09 23:20:00 +00:00
|
|
|
entrypoint: poetry run python src/emulator.py
|
2021-11-10 23:39:47 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- REDIS_HOST=$REDIS_HOST
|
|
|
|
- REDIS_PORT=$REDIS_PORT
|
|
|
|
- RTMP_HOST=$RTMP_HOST
|
|
|
|
- RTMP_PORT=$RTMP_PORT
|
2021-11-09 19:56:57 +00:00
|
|
|
depends_on:
|
2021-11-10 23:44:57 +00:00
|
|
|
- rtmp
|
|
|
|
- redis
|
2021-11-09 17:19:55 +00:00
|
|
|
redis:
|
2021-11-10 23:44:57 +00:00
|
|
|
image: redis:alpine
|
2021-11-10 23:39:47 +00:00
|
|
|
restart: unless-stopped
|
2021-11-09 19:56:57 +00:00
|
|
|
ports:
|
2021-11-10 23:39:47 +00:00
|
|
|
- $REDIS_PORT:6379
|
2021-11-09 17:19:55 +00:00
|
|
|
rtmp:
|
2021-11-10 23:44:57 +00:00
|
|
|
image: tiangolo/nginx-rtmp
|
2021-11-10 23:39:47 +00:00
|
|
|
restart: unless-stopped
|
2021-11-09 17:19:55 +00:00
|
|
|
ports:
|
2021-11-10 23:39:47 +00:00
|
|
|
- $RTMP_PORT:1935
|