Bonjour,
Pour tester le fonctionnement de Docker avec Portainer, j'ai commencé à déployer Wallabag qui permet de sauvegarder des articles sur le net.
Mon NAS fonctionne avec 2 espaces de stockages :
- volume 1 pour l'OS ADM et docker avec Portainer et ses conteneurs.
- volume 2, pour tout ce qui est média.
Donc j'ai créé un conteneur wallabag dans le volume 1 et images + data (si je comprend bien, sont des répertoires de sauvegarde d'articles enregistrés) dans le volume 2. J'ai créé des dossiers pour ça.
Sous portainer, le fichier compose-docker est écrit comme ça, en m'inspirant du tuto de mariushosting et Github wallabag :
services:
wallabag:
image: wallabag/wallabag
container_name: Wallabag
restart: on-failure:5
environment:
- MYSQL_ROOT_PASSWORD=wallaroot
- SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
- SYMFONY__ENV__DATABASE_HOST=db
- SYMFONY__ENV__DATABASE_PORT=3306
- SYMFONY__ENV__DATABASE_NAME=wallabag
- SYMFONY__ENV__DATABASE_USER=wallabag
- SYMFONY__ENV__DATABASE_PASSWORD=wallapass
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
- SYMFONY__ENV__DOMAIN_NAME=http://xxx.xxx.x.xxx:6749 (adresse ip du nas)
- SYMFONY__ENV__SERVER_NAME="Your wallabag instance"
- SYMFONY__ENV__FOSUSER_CONFIRMATION=false
- SYMFONY__ENV__FOSUSER_REGISTRATION=true
- SYMFONY__ENV__TWOFACTOR_AUTH=true
ports:
- 6749:80
volumes:
- /volume2/MediaDocker/Wallabag/images:/var/www/wallabag/web/assets/images:rw
- /volume2/MediaDocker/Wallabag/data:/var/www/wallabag/data:rw
depends_on:
- db
- redis
db:
image: mariadb:11.4-noble #LTS Long Time Support Until May 29, 2029.
container_name: Wallabag-DB
restart: always
environment:
- MYSQL_ROOT_PASSWORD=wallaroot
- TZ=Europe/Paris
volumes:
- /volume1/Docker/Wallabag/db:/var/lib/mysql:rw
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--innodb_initialized"]
interval: 20s
timeout: 3s
redis:
image: redis:alpine
container_name: Wallabag-REDIS
healthcheck:
test: ["CMD-SHELL", "redis-cli ping || exit 1"]
volumes:
- /volume1/Docker/Wallabag/redis:/data:rw
restart: on-failure:5
Quand j'ouvre wallabag et que j'enregistre un article grâce à un URL, je reçois ca :

L'article n'est donc pas tout à fait enregistré. Juste le lien internet mais pas de données ni d'images.
Ai-je mal configuré ? Ai-je oublié quelque chose dans le compose-docker ?
Pour tester le fonctionnement de Docker avec Portainer, j'ai commencé à déployer Wallabag qui permet de sauvegarder des articles sur le net.
Mon NAS fonctionne avec 2 espaces de stockages :
- volume 1 pour l'OS ADM et docker avec Portainer et ses conteneurs.
- volume 2, pour tout ce qui est média.
Donc j'ai créé un conteneur wallabag dans le volume 1 et images + data (si je comprend bien, sont des répertoires de sauvegarde d'articles enregistrés) dans le volume 2. J'ai créé des dossiers pour ça.
Sous portainer, le fichier compose-docker est écrit comme ça, en m'inspirant du tuto de mariushosting et Github wallabag :
services:
wallabag:
image: wallabag/wallabag
container_name: Wallabag
restart: on-failure:5
environment:
- MYSQL_ROOT_PASSWORD=wallaroot
- SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
- SYMFONY__ENV__DATABASE_HOST=db
- SYMFONY__ENV__DATABASE_PORT=3306
- SYMFONY__ENV__DATABASE_NAME=wallabag
- SYMFONY__ENV__DATABASE_USER=wallabag
- SYMFONY__ENV__DATABASE_PASSWORD=wallapass
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
- SYMFONY__ENV__DOMAIN_NAME=http://xxx.xxx.x.xxx:6749 (adresse ip du nas)
- SYMFONY__ENV__SERVER_NAME="Your wallabag instance"
- SYMFONY__ENV__FOSUSER_CONFIRMATION=false
- SYMFONY__ENV__FOSUSER_REGISTRATION=true
- SYMFONY__ENV__TWOFACTOR_AUTH=true
ports:
- 6749:80
volumes:
- /volume2/MediaDocker/Wallabag/images:/var/www/wallabag/web/assets/images:rw
- /volume2/MediaDocker/Wallabag/data:/var/www/wallabag/data:rw
depends_on:
- db
- redis
db:
image: mariadb:11.4-noble #LTS Long Time Support Until May 29, 2029.
container_name: Wallabag-DB
restart: always
environment:
- MYSQL_ROOT_PASSWORD=wallaroot
- TZ=Europe/Paris
volumes:
- /volume1/Docker/Wallabag/db:/var/lib/mysql:rw
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--innodb_initialized"]
interval: 20s
timeout: 3s
redis:
image: redis:alpine
container_name: Wallabag-REDIS
healthcheck:
test: ["CMD-SHELL", "redis-cli ping || exit 1"]
volumes:
- /volume1/Docker/Wallabag/redis:/data:rw
restart: on-failure:5
Quand j'ouvre wallabag et que j'enregistre un article grâce à un URL, je reçois ca :

L'article n'est donc pas tout à fait enregistré. Juste le lien internet mais pas de données ni d'images.
Ai-je mal configuré ? Ai-je oublié quelque chose dans le compose-docker ?
- Appareil
- Asustor AS5404T
- Version du firmware
- ADM 5.1