Skip to content
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

Help with docker-compose and existing sqlite database #98

Open
dreadedhamish opened this issue Sep 18, 2022 · 0 comments
Open

Help with docker-compose and existing sqlite database #98

dreadedhamish opened this issue Sep 18, 2022 · 0 comments

Comments

@dreadedhamish
Copy link

dreadedhamish commented Sep 18, 2022

I'm trying a very simple implementation:

  1. I've left the dreamfactory db and redis settings as default.
  2. Using the default sql settings for web: environment: works (removing user and hostname)
  3. I've added a volume to which links to a folder where I have this database stored.
  4. I can manually add Services for a) files to make this folder accessible, and b) import my databases this way.

But I can't figure out how to use this as the primary web: environment: database.

Could anyone help me out with the following settings (or send some links to example local sqlite implementations)?
for an SQLITE db /opt/dreamfactory/storage/df-localDBs/localsqlite.db with a table name TABLE1, what would the following settings need to be?

web:
environment:
SERVERNAME: dreamfactory.local
# HTTPS_HEADER: "on"
# APP_KEY: VALUE
DB_DRIVER: mysql
DB_HOST: mysql
# DB_USERNAME: df_admin
# DB_PASSWORD: df_admin
DB_DATABASE: dreamfactory

volumes:
  - df-storage:/opt/dreamfactory/storage
  - PATH/TO/localDBs:/opt/dreamfactory/storage/df-localDBs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant