| 
									
										
										
										
											2021-12-23 14:30:03 -05:00
										 |  |  | version: "3"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-10 23:26:04 -03: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 14:30:03 -05:00
										 |  |  | services:
 | 
					
						
							|  |  |  |   app:
 | 
					
						
							| 
									
										
										
										
											2023-04-10 23:26:04 -03:00
										 |  |  |     build:
 | 
					
						
							|  |  |  |       context: ../../..
 | 
					
						
							|  |  |  |       dockerfile: ./frontend/scripts/docker-buildfiles/Dockerfile
 | 
					
						
							| 
									
										
										
										
											2022-07-18 17:58:15 +08:00
										 |  |  |     image: appflowy/appflowy:latest
 | 
					
						
							|  |  |  |     stdin_open: true
 | 
					
						
							| 
									
										
										
										
											2021-12-23 14:30:03 -05:00
										 |  |  |     # tty: true
 | 
					
						
							| 
									
										
										
										
											2022-01-20 22:09:33 +02:00
										 |  |  |     devices:
 | 
					
						
							| 
									
										
										
										
											2023-04-10 23:26:04 -03:00
										 |  |  |       - /dev/dri:/dev/dri # fixes MESA-LOADER error
 | 
					
						
							| 
									
										
										
										
											2021-12-23 14:30:03 -05:00
										 |  |  |     environment:
 | 
					
						
							| 
									
										
										
										
											2023-04-10 23:26:04 -03:00
										 |  |  |       - DISPLAY=$DISPLAY
 | 
					
						
							| 
									
										
										
										
											2022-07-18 17:58:15 +08:00
										 |  |  |       - NO_AT_BRIDGE=1 # fixes dbind-WARNING
 | 
					
						
							| 
									
										
										
										
											2021-12-23 14:30:03 -05:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |       - $HOME/.Xauthority:/root/.Xauthority:rw
 | 
					
						
							| 
									
										
										
										
											2022-07-18 17:58:15 +08: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 22:09:33 +02:00
										 |  |  |     network_mode: host
 |