version: '2.2' volumes: engine: # TODO consider passing $XAUTHORITY # https://stackoverflow.com/a/25280523/5894777 services: toontown_rewritten: build: . image: fphammerle/toontown-rewritten environment: - DISPLAY #- LIBGL_DEBUG=verbose volumes: - /tmp/.X11-unix:/tmp/.X11-unix:ro - engine:/toontown-rewritten/engine:rw security_opt: [no-new-privileges] # docker-compose >=2.2,<3 cpus: 0.8 # https://docs.docker.com/compose/compose-file/compose-file-v2/