-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
60 lines (60 loc) · 1.36 KB
/
docker-compose.yaml
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
version: '3'
services:
xdummy: # Some gym environments require a x server for rendering.
build:
context: docker
dockerfile: Dockerfile.Xdummy
container_name: xdummy
volumes:
- X11:/tmp/.X11-unix
restart: always
torcs:
build:
context: docker
dockerfile: Dockerfile.torcs
args:
DISPLAY_WIDTH: 480
DISPLAY_HEIGHT: 360
container_name: torcs
ports:
- 3101:3101 # torcs
- 5901:5901 # vnc
- 6901:6901 # web vnc
# Always restart container when it exited. Important because container
# kills itself from time to time on purpose!
restart: always
environment:
VNC_PW: tftorcs
privileged: True
tensorflow:
build:
context: docker
dockerfile: Dockerfile
container_name: tensorflow
depends_on:
- xdummy
links:
- torcs
environment:
DISPLAY: :1
TORCS_HOST: torcs
TORCS_PORT: 3101
command: ${CMD:-python3 torcs.py} # tail -f /dev/null
working_dir: /wd
ports:
- 8888:8888
volumes:
- X11:/tmp/.X11-unix
- ${WD:-.}:/wd
tensorboard:
image: tensorflow/tensorflow:1.2.1-py3
container_name: tensorboard
command: tensorboard --logdir /wd --port 6006
restart: always
working_dir: /wd
volumes:
- ${WD:-.}/logs:/wd
ports:
- 6006:6006
volumes:
X11: