-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Any plans for a Docker image? #13
Comments
@sfkpmr what do you propose the use of Docker for? (building? hosting flutter as a pwa or something - not a flutter expert) |
@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... |
@sfkpmr The docker file is used to deploy the AppFlowy backend on the local host. |
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 |
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 |
Please DO create the Docker Image we are interested in hosting it on our servers. |
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. |
We're definitely open to PRs. To understand this better, do you want a docker backend or both the backend and the frontend? |
Love how you put this all together - I can feel your pain now :( |
@annieappflowy An image for both would be awesome! |
Please join our Discord channel, and I believe some pro hackers can help you out there |
@franciscoafonsoo It seems possible to docker the flutter desktop application. I use docker to host the backend on my laptop to develop the frontend, but I didn't set up the Dockerfile. |
Guys, PRs for this are welcomed :D |
Yes, docker is very needed to run it |
I will then join discord and discuss some things ! |
So i will start with something very simple:
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 |
+1 for this |
@franciscoafonsoo Wow, it seems ok to me. Have you tried it?
|
another +1 for this!! a docker container would make it that much easier to set up and run on any server |
+1 little idea, let's volume data to the local. by the way, don't forget to support M1. 😁 |
+1 i would love to develop full stack with docker |
+1 |
+1 |
There's a whole community of self-hosters who would love to take this for a spin! :-D |
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 |
+1 |
That would be fantastic. Would love to get it running on my end under unraid. |
+1 |
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. |
The backend docker image is ready. Run 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. |
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... |
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 |
Would it be possible to make the Docker available on DockerHub? Then it would be easy to set up AppFlowy on Unraid. |
Hello, You can find install information here. |
* feat: ci: dockerize gotrue auth server * feat: build: add gotrue to docker-compose * fix: build: docker-compose + test * feat: ci: simplify tests * feat: ci: add back needed services for compilation * fix: ci: github secrets * fix: ci: use signup * fix: ci: add export * fix: test: generate unique email for registration to avoid conflict
I see .dockerignore, but no Dockerfile. Would love to see one!
The text was updated successfully, but these errors were encountered: