Coder Social home page Coder Social logo

Comments (8)

darkskygit avatar darkskygit commented on May 22, 2024 3

I was trying to build a dockerfile for this as well but i am reaching dependency hell :(

currently the Dockerfile is placed here:
https://github.com/toeverything/AFFiNE/tree/master/.github/deployment

from affine.

tzhangchi avatar tzhangchi commented on May 22, 2024 3

You can quickly experience AFFiNE through docker

docker pull ghcr.io/toeverything/affine:nightly-latest 
docker run -d -p 4200:3000 --name affine -d  ghcr.io/toeverything/affine:nightly-latest  
open http://localhost:4200

from affine.

alt1o avatar alt1o commented on May 22, 2024

We expect to go live with an online version next week, thanks for your attention. Currently it can only be previewed for use in this way: https://affine.gitbook.io/affine/basic-documentation/contribute-to-affine/quick-start

from affine.

reneManqueros avatar reneManqueros commented on May 22, 2024

I was trying to build a dockerfile for this as well but i am reaching dependency hell :(

from affine.

tzhangchi avatar tzhangchi commented on May 22, 2024

I was trying to build a dockerfile for this as well but i am reaching dependency hell :(

Sorry to hear that. But it won't take long before we release a web demo

from affine.

tzhangchi avatar tzhangchi commented on May 22, 2024

This link may meet your needs
Ihttps://github.com/toeverything/AFFiNE/pkgs/container/affine

from affine.

MohamedElashri avatar MohamedElashri commented on May 22, 2024

Thanks for the quick docker example. Just note that you are repeating detach flag -d

It should be

docker pull ghcr.io/toeverything/affine:nightly-latest 
docker run -d -p 4200:3000 --name affine  ghcr.io/toeverything/affine:nightly-latest  

Also, It would be great if you can add minimal working docker-compose.yml. Here is a suggestion.

version: '3.3'
services:
    affine:
        container_name: affine
        ports:
            - '4200:3000'
        image: 'ghcr.io/toeverything/affine:nightly-latest'

Another thing, you need to mount the volume using -v so that you don't lose the data. I'm not sure however how you store them inside the app (container).

from affine.

darkskygit avatar darkskygit commented on May 22, 2024

Thanks for the quick docker example. Just note that you are repeating detach flag -d

It should be

docker pull ghcr.io/toeverything/affine:nightly-latest 
docker run -d -p 4200:3000 --name affine  ghcr.io/toeverything/affine:nightly-latest  

Also, It would be great if you can add minimal working docker-compose.yml. Here is a suggestion.

version: '3.3'
services:
    affine:
        container_name: affine
        ports:
            - '4200:3000'
        image: 'ghcr.io/toeverything/affine:nightly-latest'

Another thing, you need to mount the volume using -v so that you don't lose the data. I'm not sure however how you store them inside the app (container).

the affine container just a frontend container, affine does not need backend now and it will storage the data in browser
in the near future, a new version with local data storage will be launch, that allow you to store the data in hard disk and sync to anywhere

from affine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.