Coder Social home page Coder Social logo

Comments (5)

Bubka avatar Bubka commented on June 2, 2024

This seems similar to #192

Custom DB_DATABASE path is not supported, this is something I need to change. For now you have to stick to /2fauth/database.sqlite. But you can bind this folder to the host folder of your choice with the volumes directive of the docker-compose file:

services:
  2fauth:
    image: 2fauth/2fauth
    container_name: 2fauth
    volumes:
      - /path/to/host/folder/of/your/choice:/2fauth
      - ...

from 2fauth.

Draky50110 avatar Draky50110 commented on June 2, 2024

Ok, all ok and I changed my compose file to :
volumes:
- /srv/dev-disk-by-XXX/2fauth:/2fauth
- /srv/dev-disk-by-XXX/2fauth/database:/srv/database

2fauth and 2fauth/database folders needed to be created first and chown/chmod before deploying stack.
Logs are showing database creation and connection.

Still need to find why going to IP:8000 gives a "server error" in JSON format though...

from 2fauth.

Bubka avatar Bubka commented on June 2, 2024

Only /srv/dev-disk-by-XXX/2fauth:/2fauth is needed.
/srv/database (in the container) contains a symlink to /2fauth/database.sqlite (as well as the storage symlink pointing to /2fauth/storage).
What is the reason you mounted srv/database?

from 2fauth.

Draky50110 avatar Draky50110 commented on June 2, 2024

Mmmm can't remember.

Will retry without the second mounting point.

from 2fauth.

Draky50110 avatar Draky50110 commented on June 2, 2024

All correctly mounted and accessed : had to create base dir and chmod 1000:1000 + chmod 700 before pulling container...

from 2fauth.

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.