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

Persisting data to skip setup #131

Closed
Dids opened this issue Sep 23, 2016 · 4 comments
Closed

Persisting data to skip setup #131

Dids opened this issue Sep 23, 2016 · 4 comments

Comments

@Dids
Copy link

Dids commented Sep 23, 2016

I'm running Cachet using Docker Cloud, which uses a similar syntax to Docker Compose files, but it's not identical.

My question is, how would I make sure that I can persist data in a volume, as well as pass the correct environment variables, so that I could replicate an identical Cachet setup at any point, as long as my data (including database) was still there?

Essentially, I'd like to know what paths on Cachet's side I'd have to mount (if any), and what env vars I'd have to define to skip the initial setup. I know that at least previously I had to define APP_KEY etc. but it seems like the format/encryption for that has changed?

@Dids
Copy link
Author

Dids commented Sep 23, 2016

Actually, from what I can tell, it seems like I no longer need to set APP_KEY. I'm currently setting the following env vars:

- APP_ENV=production
- APP_DEBUG=false
- APP_URL=http://url
- DB_DRIVER=mysql
- DB_HOST=mysql
- DB_DATABASE=cachet
- DB_USERNAME=cachet
- DB_PASSWORD=pass
- CACHE_DRIVER=apc
- SESSION_DRIVER=apc
- QUEUE_DRIVER=database
- CACHET_EMOJI=true
- MAIL_DRIVER=smtp
- MAIL_HOST=mailtrap.io
- MAIL_PORT=2525
- MAIL_USERNAME=user
- MAIL_PASSWORD=pass
- MAIL_ADDRESS="no-reply@url"
- MAIL_NAME="Status"
- MAIL_ENCRYPTION=tls
- REDIS_HOST=null
- REDIS_DATABASE=null
- REDIS_PORT=null
- GITHUB_TOKEN=null

@djdefi
Copy link
Contributor

djdefi commented Sep 27, 2016

That is a good question. I messed with this a bit but was not able to figure out how to skip the setup wizards.

@djdefi
Copy link
Contributor

djdefi commented Mar 14, 2017

Possible fix in #166

@djdefi
Copy link
Contributor

djdefi commented Mar 14, 2017

I am going to go ahead and close this, as #166 should make this work better.

@djdefi djdefi closed this as completed Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants