Comments (36)
@sfkpmr maybe I don't want to install Rust on my machine, maybe I just want to download the docker images and run the app on my local environment without installing any dependency...
also docker containers can be used to deploy the app faster on tons of boxes.
if some developer is using M1 and doesn't have a dependency or is just running Linux docker will have all dependencies already built in, configured and ready to run.
Docker is a must
from appflowy.
Would you guys be open to a Pull Request for a docker-compose and some Dockerfiles ?
I was thinking that it would help local development in the wild to have a docker-compose that launches the db, the backend and the frontend (never dockerized a flutter app but should be possible).
Edit: i'm checking the database scripts. The idea would be to simplify this logic so that random developers can launch the project in a very simple and straight forward way
from appflowy.
Please DO create the Docker Image we are interested in hosting it on our servers.
from appflowy.
Yes, please! The Rust+Flutter stack isn't that common nowadays and having to spend more than 1 hour (my case so far) for installing all the Rust and Flutter dependencies, plus compiling... is discouraging, unless you have been waiting for a Notion open source clone for years!
With Docker it would be super easy and fast to just fetch AppFlowy and run it
from appflowy.
So i will start with something very simple:
- docker-compose definition for the backend and the database. something like this
version: "3.8"
services:
backend:
image: appflowy-backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 8080:8080
database:
image: postgres:14.1-bullseye
environment:
DB_USER: postgres
DB_PASSWORD: password
DB_NAME: flowy
DB_PORT: 5433
ports:
- 5433:5433
I am reading the db scripts to understand what needs to be done. But should look something like that. After having that done, it's a matter of exploring flutter docker and connecting it.
Is the existing rust Dockerfile working ? @appflowy
from appflowy.
Please DO create the Docker Image we are also VERY interested.
It has taken more than 3 hours to install all dependencies so far without success.
from appflowy.
Yeah we would be keen to do a video on this if we could get a working docker container running on the unraid platform (we can add the template on your behalf if needed) - https://youtube.com/c/IBRACORP
from appflowy.
The backend docker image is ready. Run
make docker_image
I couldn't find the method to run the GUI desktop application build with flutter in Docker, but I'll keep trying. I'm working on the frontend part that enables communication with the backend. Let me know if I'm on the right track to meet your needs.
from appflowy.
@sfkpmr what do you propose the use of Docker for? (building? hosting flutter as a pwa or something - not a flutter expert)
from appflowy.
+1
from appflowy.
I couldn't find the method to run the GUI desktop application build with flutter in Docker, but I'll keep trying. I'm working on the frontend part that enables communication with the backend. Let me know if I'm on the right track to meet your needs.
I don't think there is a straightforward way to do it. Users might have to do some external setup to get GUI applications working on docker. Besides, i don't think there is a usecase here. Users could easily use the release zips to run the frontend. If its for easier building, maybe a docker image with mounted folder could be used and the build could be output in the folder.
from appflowy.
This thread needs a conclusion. There seems to be bits and pieces, but no clear outcome. Can someone write up a blogpost/wiki that explains what our docker containers can do, how to install them, and how to use them? If a PR is needed, let's get that done too. Then we can close this issue.
Who would like to take the lead on this?
@nicolasdanelon @appflowy @franciscoafonsoo @annieappflowy @adamzhoul @lirc572 @antoineozenne
from appflowy.
Would you guys be open to a Pull Request for a docker-compose and some Dockerfiles ?
I was thinking that it would help local development in the wild to have a docker-compose that launches the db, the backend and the frontend (never dockerized a flutter app but should be possible).
Edit: i'm checking the database scripts. The idea would be to simplify this logic so that random developers can launch the project in a very simple and straight forward way
We're definitely open to PRs. To understand this better, do you want a docker backend or both the backend and the frontend?
from appflowy.
Yes, please! The Rust+Flutter stack isn't that common nowadays and having to spend more than 1 hour (my case so far) for installing all the Rust and Flutter dependencies, plus compiling... is discouraging, unless you have been waiting for a Notion open source clone for years!
With Docker it would be super easy and fast to just fetch AppFlowy and run it
Love how you put this all together - I can feel your pain now :(
Let's just keep discussing this topic in this thread until we land on a nice solution :D
from appflowy.
@annieappflowy An image for both would be awesome!
from appflowy.
@franciscoafonsoo It seems possible to docker the flutter desktop application.
https://hub.docker.com/r/openpriv/flutter-desktop
I use docker to host the backend on my laptop to develop the frontend, but I didn't set up the Dockerfile.
from appflowy.
Guys, PRs for this are welcomed :D
from appflowy.
There's a whole community of self-hosters who would love to take this for a spin! :-D
from appflowy.
+1
from appflowy.
I think a docker-compose to launch all the stack (back, front, db) would be great to promote the application. Today, I wanted to test the application on Ubuntu, but there is no "one-command test". In addition, Rust and Flutter are still fairly new, and not everyone is perfectly comfortable with these technologies. While a docker-compose...
from appflowy.
Would it be possible to make the Docker available on DockerHub? Then it would be easy to set up AppFlowy on Unraid.
from appflowy.
Hello,
A Docker file was created and documented by @rushic24, thanks!
You can find install information here.
from appflowy.
@sfkpmr The docker file is used to deploy the AppFlowy backend on the local host.
from appflowy.
Please DO create the Docker Image we are also VERY interested.
It has taken more than 3 hours to install all dependencies so far without success.
Please join our Discord channel, and I believe some pro hackers can help you out there
from appflowy.
Yes, docker is very needed to run it
from appflowy.
@franciscoafonsoo It seems possible to docker the flutter desktop application. https://hub.docker.com/r/openpriv/flutter-desktop
I use docker to host the backend on my laptop to develop the frontend, but I didn't set up the Dockerfile.
I will then join discord and discuss some things !
from appflowy.
+1 for this
from appflowy.
@franciscoafonsoo Wow, it seems ok to me. Have you tried it?
- The existing Dockerfile does not work anymore.
from appflowy.
another +1 for this!! a docker container would make it that much easier to set up and run on any server
from appflowy.
+1
little idea, let's volume data to the local.
so we can easily back up.
or, users can volume path to apple iCloud path, so data can sync between the company and home easily.
by the way, don't forget to support M1. 😁
from appflowy.
+1
i would love to develop full stack with docker
from appflowy.
+1
from appflowy.
+1
Is there a PR in progress for this?
from appflowy.
Yeah we would be keen to do a video on this if we could get a working docker container running on the unraid platform (we can add the template on your behalf if needed) - https://youtube.com/c/IBRACORP
That would be fantastic. Would love to get it running on my end under unraid.
from appflowy.
I think it would be more useful to be able to also run the flutter desktop app itself in a docker container during development and display the GUI on the host machine, because it will allow us to use flutter's hot reload for development.
This link is a good reference on how to run GUI apps in a container. Not sure if it will be easy to apply it to the flutter desktop toolchain though.
A web (PWA) version would of course be much easier to run/develop with docker.
from appflowy.
Hello, A Docker file was created and documented by @rushic24, thanks!
You can find install information here.
The wiki link is redirecting to the GitHub project home page. Is this no longer supported?
Edit: Found the new link here
from appflowy.
Related Issues (20)
- [FR] More sign-up/login options
- [Mobile][FR] mobile widget HOT 1
- [Bug] Version 5.0.0 starts and flashes back HOT 16
- [FR] display the sync status
- [FR] 'insert above line' feature for toggle list
- [FR] support selecting font family and text color before typing
- [Bug] After certain operations, the editor will enter a stuck state. HOT 2
- [Bug] arrow problem
- [Bug] OpenAI request gets stuck HOT 6
- [FR] search in all data & Create a sub document from rows like ( referenced Document )
- [Bug] Mobile Group Actions missing horizontal insets
- [Bug] Wrong material ink color on new group button on mobile
- [Bug] Unequal horizontal padding in mobile database header
- [Bug] Long pressing view on mobile causes rebuild
- [Bug] Mobile Settings as anonymous user has empty space
- [Bug] After editing a link, pressing on the link again opens it
- [Bug] The current version does not support this block HOT 1
- [FR] Store last visited time on recent view
- [FR] See Cloud Storage usage
- [Bug] unable to sync the images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appflowy.