-
Notifications
You must be signed in to change notification settings - Fork 157
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
Enhance the production compose file #200
Conversation
Also maybe we could add a comment for the ARM64 image like this: invidious:
#image: quay.io/invidious/invidious:latest-arm64 # for ARM - raspberry pi
image: quay.io/invidious/invidious:latest |
It's what Nextcloud recommends: https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml#L5 Also, after reading https://hub.docker.com/_/postgres/ they just warn that postgres on alpine has less features... that we don't use. It that really a problem? It saves a good amount of space, and doesn't break anything.
As I said: "we can't vouch for it's usefulness, and its security (it has access to the docker socket, which is a massive security risk)", users can use it, but we shouldn't "enforce" or endorse it in any way. |
I can't find the issue again on invidious but I remember that it was causing some issues. I'll search again.
Comment it then? I don't exactly know how to recommend but not having it by default. |
Does it actual do anything compared to just the healthcheck though? Does it provides anything? |
It restarts the container if the healthcheck fails. |
Did you find anything? What should I do? Stay on an Alpine image, or not risk anything and go back to the Debian one? About willfarrell/autoheal: After this PR is merged, I want to do some more minor changes to the document, so I'll mention that it can be used (this is out of scope for this PR) |
I think we should stay on debian for the moment (and maybe use postgres 13 rather than 14, as 13 is what's currently available on debian stable). Also, I'm not sure that the ~130M image will do much against the gigabyte or two that our DB can take. And that's a compose file aimed at "noobs" anyway (more experienced people will edit it as they see fit). |
It really doesn't matters what ships on a distro for docker, 14 is the latest, so we should definitely go for it.
Fair, let's go back to a Debian one then. |
I can't find the issue, but I just remembered, basically it was something like that: Obviously, you can do a pg_dump from the source database then import it back from the .sql but sometimes just copying the entire postgresql data folder is faster and you keep everything including the permissions. Also related to #201, if we create a tutorial to upgrade postgresql on docker, I'm not sure if we can easily upgrade a docker postgres 10 with debian to a docker postgres 14 with alpine. |
@unixfox That's a good point indeed! PRs ready to merge then, unless you have any objection. |
Follow up to #160 (comment)
Related to iv-org/invidious#2917 (wait for both to be ready - so that we can merge them at the same time)
Massively enhance the production compose:
unless-stopped
sincealways
is bad practicewillfarrell/autoheal
container: we can't vouch for it's usefulness, and its security (it has access to the docker socket, which is a massive security risk)and move to an Alpine-based Postgres imageEnforce a container_nameEdit: Enhance the production compose file #200 (comment)It has been tested, and it's working