Cattr installation notes #163
Pinned
vermorag
started this conversation in
Show and tell
Replies: 1 comment 5 replies
-
Thanks for the tutorial! I've tried using this $ docker exec -it cattr-app-1 /bin/bash
OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For Cattr installation you need to use the official Docker image from Cattr Registry. Basically, all versions are tagged with
v...
tag. So, for example, you can use:registry.git.amazingcat.net/cattr/core/app:v4.0.0-RC47
.The docker image contains everything, except the database. So you'll need an external database or docker-compose to make it work.
So, for example, your docker-compose.yml file can look like this:
Cattr can work with percona/mysql/mariadb, so you're free to choose any. All env variables, that will be used for DB connection you can check in config/database.php.
Also, it will be a good option to set APP_KEY for artisan on the compose level to persist it between restarts. Pay attention to the mounted folder
/app/storage
- it will store your screenshots and data, needed for persistence.On first install Cattr will create an admin with the name
Admin
, loginadmin@cattr.app
and passwordpassword
, but you are free to change it with env variablesAPP_ADMIN_EMAIL
,APP_ADMIN_PASSWORD
andAPP_ADMIN_NAME
.If you want to use HTTPS, you'll need to setup nginx on your server for proxying requests to Cattr container.
Your nginx site config can look like that:
That's all. You can ask any questions about Cattr installation in the thread.
Beta Was this translation helpful? Give feedback.
All reactions