forked from bzier/gym-mupen64plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.36 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '2.3'
services:
xvfbsrv:
image: gym_mupen64plus
entrypoint: [
'Xvfb', ':0',
'-screen', '0',
'640x480x24',
'-fbdir', '/dev/shm',
'-ac',
'-listen', 'tcp'
]
vncsrv:
image: gym_mupen64plus
environment:
- DISPLAY=xvfbsrv:0
entrypoint: [ 'x11vnc', '-forever', '-viewonly', '-shared', '-nopw', '-noshm' ]
depends_on: [ xvfbsrv ]
emulator:
image: gym_mupen64plus
environment:
- DISPLAY=xvfbsrv:0
volumes:
- type: bind
source: "${LOCAL_ROM_PATH}"
target: /src/gym-mupen64plus/gym_mupen64plus/ROMs
command: [
'mupen64plus',
'--nospeedlimit',
'--nosaveoptions',
'--resolution', '640x480',
'--gfx', 'mupen64plus-video-glide64.so',
'--audio', 'dummy',
'--input', '/usr/local/lib/mupen64plus/mupen64plus-input-bot.so',
'--set', 'Input-Bot-Control0[plugged]=1',
'--set', 'Input-Bot-Control0[host]=agent',
'--set', 'Input-Bot-Control0[port]=8082',
'/src/gym-mupen64plus/gym_mupen64plus/ROMs/marioKart.n64'
]
depends_on: [ xvfbsrv, agent ]
agent:
image: gym_mupen64plus
build:
context: .
dockerfile: Dockerfile
environment:
- DISPLAY=xvfbsrv:0
- EXTERNAL_EMULATOR=True
command: [ 'python', '-u', 'gym-mupen64plus/EnvSender.py' ]
depends_on: [ xvfbsrv ]