booplaysgba/docker-compose.yml

49 lines
1 KiB
YAML
Raw Normal View History

2022-02-08 16:35:48 +00:00
version: "3.8"
2021-11-09 17:19:55 +00:00
services:
server:
build:
context: src/server/
2022-02-08 16:35:48 +00:00
dockerfile: Dockerfile
environment:
- REDIS_HOST=$REDIS_HOST
- REDIS_PORT=$REDIS_PORT
- WEBSOCKET_SERVE=$WEBSOCKET_SERVE
- 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
2022-02-08 16:35:48 +00:00
restart: unless-stopped
2021-11-09 17:19:55 +00:00
emulator:
build:
context: src/emulator/
2022-02-08 16:35:48 +00:00
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
2021-11-09 19:56:57 +00:00
depends_on:
- rtmp
- redis
2021-11-14 21:13:04 +00:00
volumes:
- ./states/:$EMULATOR_STATES_PATH
- ./roms/:/roms/
2022-02-08 16:35:48 +00:00
restart: unless-stopped
2021-11-09 17:19:55 +00:00
redis:
image: redis:alpine
2021-11-09 19:56:57 +00:00
ports:
- $REDIS_PORT:6379
2022-02-08 16:35:48 +00:00
restart: unless-stopped
2021-11-09 17:19:55 +00:00
rtmp:
image: tiangolo/nginx-rtmp
2021-11-09 17:19:55 +00:00
ports:
- $RTMP_PORT:1935
2022-02-08 16:35:48 +00:00
restart: unless-stopped