-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Docker: Loosing uploads after each deploy #16
Comments
Looks like adding: volumes:
- uploads:/app/priv/static/uploads Is fixing the issue. |
(maybe this should be documented by the way) |
@drupol how did you get docker to work? I can't seem to get it working. |
I'm using Nix for this, and this is what I had to do to setup Claper on my server, nothing else: { config, pkgs, ... }:
{
config.virtualisation.oci-containers.containers = {
claper = {
image = "ghcr.io/claperco/claper:main";
ports = [
"4000:4000"
];
environment = {
DATABASE_URL = "postgres://claper:claper@LOCAL-IP:5432/claper";
SECRET_KEY_BASE = "SECRET-KEY-BASE";
ENDPOINT_HOST = "claper.my-public-hostname.com";
};
dependsOn = [ "db" ];
volumes = [
"uploads:/app/priv/static/uploads"
];
};
db = {
image = "postgres:9";
ports = [
"5432:5432"
];
environment = {
POSTGRES_PASSWORD = "password";
POSTGRES_USER = "password";
POSTGRES_DB = "password";
};
};
};
} |
alxlion
added a commit
that referenced
this issue
Feb 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Everytime I deploy a new update of the app, the uploaded presentation stored in
upload
gets lost.How can I prevent that ? I guess I have to add a volume in Docker, but what is the directory in the application to use then?
Thanks.
The text was updated successfully, but these errors were encountered: