docker-compose.yml 922 B

123456789101112131415161718192021222324252627
  1. version: "3"
  2. # NOTE: Docker should be allowed to connect to the X server in your host prior
  3. # to running `docker compose up`. Run `xhost local:docker` in the host to allow
  4. # for those connections, otherwise the following error will occur:
  5. # Gtk-WARNING **: cannot open display: :0
  6. # See https://stackoverflow.com/a/34586732/8401696 for more context.
  7. services:
  8. app:
  9. build:
  10. context: ../../..
  11. dockerfile: ./frontend/scripts/docker-buildfiles/Dockerfile
  12. image: appflowy/appflowy:latest
  13. stdin_open: true
  14. # tty: true
  15. devices:
  16. - /dev/dri:/dev/dri # fixes MESA-LOADER error
  17. environment:
  18. - DISPLAY=$DISPLAY
  19. - NO_AT_BRIDGE=1 # fixes dbind-WARNING
  20. volumes:
  21. - $HOME/.Xauthority:/root/.Xauthority:rw
  22. - /tmp/.X11-unix:/tmp/.X11-unix
  23. - /dev/dri:/dev/dri
  24. - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
  25. network_mode: host