Bonjour,

Je suis en train de créer un container pour l'installation d'un mediawiki sauf que j'ai un souci avec mon docker-compose.yml...

Le fichier contient :

Code yaml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
MediaWiki with MariaDB
 #
 # Access via "http://localhost:8081"
 #   (or "http://$(docker-machine ip):8081" if using docker-machine)
 version: '3'
   services:
     mediawiki:
       image: mediawiki
           restart: always
               ports:
                     - 8081:80
                         links:
                               - database
                                   volumes:
                                         - /var/www/html/images
                                               # After initial setup, download LocalSettings.php to the same directory as
                                                     # this yaml and uncomment the following line and use compose to restart
                                                           # the mediawiki service
                                                                 # - ./LocalSettings.php:/var/www/html/LocalSettings.php
                                                                   database:
                                                                       image: mariadb
                                                                           restart: always
                                                                               environment:
                                                                                     # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
                                                                                           MYSQL_DATABASE: mediawiki
                                                                                                 MYSQL_USER: wikiuser
                                                                                                       MYSQL_PASSWORD: *****
                                                                                                             MYSQL_RANDOM_ROOT_PASSWORD: 'yes'

Le problème lorsque je lance la commande docker-compose up j'ai un message d'erreur affichant :

ERROR: yaml.parser.ParserError: expected '<document start>', but found '<block mapping start>'
in "./docker-compose.yml", line 5, column 2
Auriez-vous un peu de temps à me consacrer afin de m'aider ?

Merci pour votre retour !!