version: '2' services: pulseaudio: build: ./ read_only: true hostname: localhost networks: - net ports: - "4713:4713" devices: - /dev/snd volumes: - /tmp/.X11-unix:/tmp/.X11-unix - /var/run/dbus:/var/run/dbus environment: DISPLAY: unix$DISPLAY networks: net: {}