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

Volumes wont attatch #2054

Open
patpatwithhat opened this issue May 3, 2024 · 1 comment
Open

Volumes wont attatch #2054

patpatwithhat opened this issue May 3, 2024 · 1 comment

Comments

@patpatwithhat
Copy link

I use Caprover to host an ASP .Net 8 app.
I have a Docker Compose File like this:

version: '3.3' 

services:
  srv-captain--medicore:  
    image: medicore:latest
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8080:8080"
    volumes:
      - medicore_volume:/app/wwwroot/images

volumes:
  medicore_volume: {}

Sadly, my volume never gets created; therefore, I can never access the data in app/wwwroot/images.
Also creating the volume before I run the app with Caprover doesn't change anything.
Any suggestions?
If I run the same container directly on my server without Caprover involved, I can create the volume with no problems like this:

docker run -d     -v medicore_volume:/app/wwwroot/images     --name MediCore     mediocre:latest

These are my specs

Linux v2202309205877238071 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
              gesamt       benutzt     frei      gemns.  Puffer/Cache verfügbar
Speicher:      3,8Gi       1,0Gi       292Mi        63Mi       2,5Gi       2,5Gi
Swap:             0B          0B          0B
@githubsaturn
Copy link
Collaborator

CapRover doesn't deploy with Docker compose.

1- Create an app with persistent data
2- Go to app config and add a volume with the desired path to your app
3- Save and Restart the app
4- Deploy your app.

Everything should work.

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