All self-hosted Docker WordPress files and data disappeared from file system

I am still learing how to do this. Please be paitent with my inexperience. I have a Raspberry Pi 4 running Raspberry Pi OS (Bullseye) with Docker and Portainer installed. I have a Portainer "Stack" that launches the following compose configuration. I had it running for over a year without any problems. Recently, I noticed some images not loading properly in my web browser. I ran an update and rebooted the system. When I went to the site again I only got the WordPress install page. All my data seems to be gone and I do not have a recent backup. Before I start again from scratch I want to verify that my data is truely gone. I am a bit confused about docker volumes and where my data shouls really be. I need some help finding my data incase it exists somewhere. Here is the Portainer "Stack": (sensitive creds genericized) version: '3.1' services: wordpress: image: wordpress container_name: wordpress restart: unless-stopped ports: - 8000:80 environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: user WORDPRESS_DB_PASSWORD: password WORDPRESS_DB_NAME: wordpressdb networks: - wordpress volumes: - wordpress:/srv/wordpress/html depends_on: - db db: image: jc21/mariadb-aria:latest restart: unless-stopped environment: MYSQL_DATABASE: wordpressdb MYSQL_USER: user MYSQL_PASSWORD: password MYSQL_ROOT_PASSWORD: rootpassword networks: - wordpress volumes: - db:/srv/wordpress/db volumes: wordpress: db: networks: wordpress: I checked both /srv/wordpress/db and /srv/wordpress/db folders and they are both empty. This is where I expected to find my data. user@rasperrypi:~ $ sudo ls -la /srv/wordpress/db total 8 drwxr-xr-x 2 root root 4096 Apr 16 2023 . drwxr-xr-x 4 root root 4096 Apr 16 2023 .. user@raspberrypi:~ $ sudo ls -la /srv/wordpress/html total 8 drwxr-xr-x 2 root root 4096 Apr 16 2023 . drwxr-xr-x 4 root root 4096 Apr 16 2023 .. Next I located the two docker volumes associated with Wordpress. user@raspberrypi:~ $ sudo ls /var/lib/docker/volumes/ 2484c594a8ed1ee27e4ad439677137d29857506b960d5fd2c1d799dcca48c5cc a5f2efa8e75af2e068fd3d8aef17405d5d013f502db6ee64b440957d3a1d6a8c wordpress_db 3c052195229e8e97e6e56a9f38c95e1a73bb094c177425156569dc7d2efef0ff ae318ff3aa368179cdd4c57dfcdc405f6db3616b3b715aa7cf230fae6e8e5e4f wordpress_wordpress Then, I tried inspecting them. user@raspberrypi:~ $ docker volume inspect wordpress_wordpress [ { "CreatedAt": "2023-04-16T21:23:47+09:00", "Driver": "local", "Labels": { "com.docker.compose.project": "wordpress", "com.docker.compose.version": "2.13.0", "com.docker.compose.volume": "wordpress" }, "Mountpoint": "/var/lib/docker/volumes/wordpress_wordpress/_data", "Name": "wordpress_wordpress", "Options": null, "Scope": "local" } ] user@raspberrypi:~ $ docker volume inspect wordpress_db [ { "CreatedAt": "2023-04-16T21:23:47+09:00", "Driver": "local", "Labels": { "com.docker.compose.project": "wordpress", "com.docker.compose.version": "2.13.0", "com.docker.compose.volume": "db" }, "Mountpoint": "/var/lib/docker/volumes/wordpress_db/_data", "Name": "wordpress_db", "Options": null, "Scope": "local" } ] Next, I checked the mountpoints. user@raspberrypi:~ $ sudo ls -la /var/lib/docker/volumes/wordpress_wordpress/_data total 8 drwxr-xr-x 2 root root 4096 Apr 16 2023 . drwx-----x 3 root root 4096 Apr 16 2023 .. user@raspberrypi:~ $ sudo ls -la /var/lib/docker/volumes/nerdpressgold_db/_data total 8 drwxr-xr-x 2 root root 4096 Apr 16 2023 . drwx-----x 3 root root 4096 Apr 16 2023 .. Empty! It looks to me like all my data has disappeared. I wonder how this could happen... The other containers, NextCloud, Jellyfin etc seem to be okay. Am I SOL on finding this data? I do not understand the the docker volumes. Which is the correct place for the data to live? I need to understand this so I can back it up properly in the future. Does anyone have any ideas about how I can proceed? Thx, Donald

Comment (0)

You’ll be in good company