# Docker Compose :  Exemple avec MariaDB

### MariaDB et Adminer

L'image officielle de `MariaDB` indique dans sa documentation un fichier `docker-compose.yml` pour le faire fonctionner avec l'interface Adminer.

[🔗 https://hub.docker.com/\_/mariadb#-via-docker-compose](https://hub.docker.com/_/mariadb#-via-docker-compose)

```yaml
# Use root/example as user/password credentials

services:

  db:
    image: mariadb
    restart: always
    environment:
      MARIADB_ROOT_PASSWORD: example

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080

```

### Exécution

[![image.png](https://formation.tfrichet.fr/uploads/images/gallery/2025-09/scaled-1680-/k3c6eWpWxqgSKZZH-image.png)](https://formation.tfrichet.fr/uploads/images/gallery/2025-09/k3c6eWpWxqgSKZZH-image.png)

[![image.png](https://formation.tfrichet.fr/uploads/images/gallery/2025-09/scaled-1680-/kXIj5Kt4aaGzqXw5-image.png)](https://formation.tfrichet.fr/uploads/images/gallery/2025-09/kXIj5Kt4aaGzqXw5-image.png)

[![image.png](https://formation.tfrichet.fr/uploads/images/gallery/2025-09/scaled-1680-/5La0AjYsR0Ub32vc-image.png)](https://formation.tfrichet.fr/uploads/images/gallery/2025-09/5La0AjYsR0Ub32vc-image.png)