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
|
2021-11-10 23:39:47 +00:00
|
|
|
environment:
|
|
|
|
- REDIS_HOST=$REDIS_HOST
|
|
|
|
- REDIS_PORT=$REDIS_PORT
|
2022-02-07 21:57:38 +00:00
|
|
|
- WEBSOCKET_SERVE=$WEBSOCKET_SERVE
|
2021-11-10 23:39:47 +00:00
|
|
|
- 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
|
2022-02-08 16:35:48 +00:00
|
|
|
restart: unless-stopped
|
2021-12-13 16:43:47 +00:00
|
|
|
|
2021-11-09 17:19:55 +00:00
|
|
|
emulator:
|
|
|
|
build:
|
|
|
|
context: .
|
2022-02-08 16:35:48 +00:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: emulator
|
2021-11-10 23:39:47 +00:00
|
|
|
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-14 21:13:04 +00:00
|
|
|
volumes:
|
2021-12-13 16:43:47 +00:00
|
|
|
- ./states/:/code/states/
|
2022-02-08 16:35:48 +00:00
|
|
|
- ./roms/:/code/roms/
|
|
|
|
restart: unless-stopped
|
2021-12-13 16:43:47 +00:00
|
|
|
|
2021-11-09 17:19:55 +00:00
|
|
|
redis:
|
2021-11-10 23:44:57 +00:00
|
|
|
image: redis:alpine
|
2021-11-09 19:56:57 +00:00
|
|
|
ports:
|
2021-11-10 23:39:47 +00:00
|
|
|
- $REDIS_PORT:6379
|
2022-02-08 16:35:48 +00:00
|
|
|
restart: unless-stopped
|
2021-12-13 16:43:47 +00:00
|
|
|
|
2021-11-09 17:19:55 +00:00
|
|
|
rtmp:
|
2021-11-10 23:44:57 +00:00
|
|
|
image: tiangolo/nginx-rtmp
|
2021-11-09 17:19:55 +00:00
|
|
|
ports:
|
2021-11-10 23:39:47 +00:00
|
|
|
- $RTMP_PORT:1935
|
2022-02-08 16:35:48 +00:00
|
|
|
restart: unless-stopped
|