2021-12-23 19:30:03 +00:00
|
|
|
version: "3"
|
|
|
|
|
2023-04-11 02:26:04 +00:00
|
|
|
# NOTE: Docker should be allowed to connect to the X server in your host prior
|
|
|
|
# to running `docker compose up`. Run `xhost local:docker` in the host to allow
|
|
|
|
# for those connections, otherwise the following error will occur:
|
|
|
|
# Gtk-WARNING **: cannot open display: :0
|
|
|
|
# See https://stackoverflow.com/a/34586732/8401696 for more context.
|
|
|
|
|
2021-12-23 19:30:03 +00:00
|
|
|
services:
|
|
|
|
app:
|
2023-04-11 02:26:04 +00:00
|
|
|
build:
|
|
|
|
context: ../../..
|
|
|
|
dockerfile: ./frontend/scripts/docker-buildfiles/Dockerfile
|
2022-07-18 09:58:15 +00:00
|
|
|
image: appflowy/appflowy:latest
|
|
|
|
stdin_open: true
|
2021-12-23 19:30:03 +00:00
|
|
|
# tty: true
|
2022-01-20 20:09:33 +00:00
|
|
|
devices:
|
2023-04-11 02:26:04 +00:00
|
|
|
- /dev/dri:/dev/dri # fixes MESA-LOADER error
|
2021-12-23 19:30:03 +00:00
|
|
|
environment:
|
2023-04-11 02:26:04 +00:00
|
|
|
- DISPLAY=$DISPLAY
|
2022-07-18 09:58:15 +00:00
|
|
|
- NO_AT_BRIDGE=1 # fixes dbind-WARNING
|
2021-12-23 19:30:03 +00:00
|
|
|
volumes:
|
|
|
|
- $HOME/.Xauthority:/root/.Xauthority:rw
|
2022-07-18 09:58:15 +00:00
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
|
|
|
- /dev/dri:/dev/dri
|
|
|
|
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
|
2022-01-20 20:09:33 +00:00
|
|
|
network_mode: host
|