booplaysgba/docker-compose.yml

49 lines
1 KiB
YAML

version: "3.8"
services:
server:
build:
context: src/server/
dockerfile: Dockerfile
environment:
- REDIS_HOST=$REDIS_HOST
- REDIS_PORT=$REDIS_PORT
- WEBSOCKET_SERVE=$WEBSOCKET_SERVE
- WEBSOCKET_PORT=$WEBSOCKET_PORT
ports:
- $WEBSOCKET_PORT:$WEBSOCKET_PORT
depends_on:
- redis
restart: unless-stopped
emulator:
build:
context: src/emulator/
dockerfile: Dockerfile
environment:
- REDIS_HOST=$REDIS_HOST
- REDIS_PORT=$REDIS_PORT
- RTMP_HOST=$RTMP_HOST
- RTMP_PORT=$RTMP_PORT
- EMULATOR_RAND_RATE=0.2
- EMULATOR_STATES_PATH=$EMULATOR_STATES_PATH
- EMULATOR_ROM_PATH=$EMULATOR_ROM_PATH
depends_on:
- rtmp
- redis
volumes:
- ./states/:$EMULATOR_STATES_PATH
- ./roms/:/roms/
restart: unless-stopped
redis:
image: redis:alpine
ports:
- $REDIS_PORT:6379
restart: unless-stopped
rtmp:
image: tiangolo/nginx-rtmp
ports:
- $RTMP_PORT:1935
restart: unless-stopped