-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.77 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
55
56
57
58
59
60
61
62
63
64
version: '2.3'
services:
xvfbsrv:
image: ${IMAGE_SPEC}
ports:
- "${XVFB_PORT}:6000"
entrypoint: [
'Xvfb', ':0',
'-screen', '0',
'640x480x24',
'-fbdir', '/dev/shm', # Framebuffer to use shared memory
'-ac', # Disable access control - enables access by any host (https://www.x.org/archive/X11R6.8.1/doc/Xserver.1.html)
'-listen', 'tcp' # Allow remote connections over TCP
]
stdin_open: true
tty: true
# screensrv:
# image: ${IMAGE_SPEC}
# ports:
# - "8070:8070"
# command: ['python3', 'server.py']
# stdin_open: true
# tty: true
# vncsrv:
# image: ${IMAGE_SPEC}
# environment:
# - DISPLAY=xvfbsrv:0
# ports:
# - "${VNC_PORT}:5900"
# entrypoint: [ 'x11vnc', '-forever', '-viewonly', '-shared', '-nopw', '-noshm' ]
# depends_on: [ xvfbsrv ]
# stdin_open: true
# tty: true
emulator:
image: ${IMAGE_SPEC}
environment:
- DISPLAY=xvfbsrv:0
volumes:
- type: bind
source: "${LOCAL_ROM_PATH}" # Since ROMs are not included in the image, bind mount a local path (set this value in the .env file)
target: /src/gym-mupen64plus/gym_mupen64plus/ROMs
ports:
- "${INPUT_PORT}:8082"
command: [
'mupen64plus',
'--nospeedlimit',
'--nosaveoptions',
'--resolution', '${RESOLUTION}',
'--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 ]
stdin_open: true
tty: true