booplaysgba/docker-compose.yml

48 lines
956 B
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: .
2022-02-08 16:35:48 +00:00
dockerfile: Dockerfile
target: server
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: .
2022-02-08 16:35:48 +00:00
dockerfile: Dockerfile
target: emulator
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/
2022-02-08 16:35:48 +00:00
- ./roms/:/code/roms/
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