booplaysgba/docker-compose.yml

42 lines
919 B
YAML
Raw Normal View History

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
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:
- $WEBSOCKET_PORT:$WEBSOCKET_PORT
2021-11-09 19:56:57 +00:00
depends_on:
- 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
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:
- rtmp
- redis
2021-11-14 21:13:04 +00:00
volumes:
- ./states/:/code/states/
2021-11-09 17:19:55 +00:00
redis:
image: redis:alpine
restart: unless-stopped
2021-11-09 19:56:57 +00:00
ports:
- $REDIS_PORT:6379
2021-11-09 17:19:55 +00:00
rtmp:
image: tiangolo/nginx-rtmp
restart: unless-stopped
2021-11-09 17:19:55 +00:00
ports:
- $RTMP_PORT:1935