Comments (5)
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.
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.
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.
Mmmm can't remember.
Will retry without the second mounting point.
from 2fauth.
All correctly mounted and accessed : had to create base dir and chmod 1000:1000 + chmod 700 before pulling container...
from 2fauth.
Related Issues (20)
- 403 Forbidden {message: "unauthorized"} HOT 3
- Add outgoing email testing from the UI HOT 1
- 2fauth + NGINX reverse proxy = 502 error HOT 1
- Mail Password Format HOT 1
- Secret Type Format
- Blank screen after update from 5.0.3 to 5.0.4 HOT 10
- "Check now" button is untranslatable HOT 1
- Add a route to clear cache from browser
- Add a "keep SSO registration enabled" setting HOT 1
- Cannot access database after upgrading v3 to v5 (self host to docker) --> No account found using this email. HOT 3
- app/Policies/OwnershipTrait contains a bug, i think HOT 9
- Add support for FreeOPT+ json exports HOT 1
- Can't decipher codes after updating to 5.1.0 HOT 17
- 5.1 SSO: Authentication via SSO rejected HOT 8
- Admin panel not working when using security device
- "Keep SSO registration enabled" is not saved
- Add pagination to /accounts page HOT 4
- Last admin can demote to user, leaving the instance administratorless
- Accounts visibility HOT 1
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 2fauth.