Explorar el Código

Merge pull request #2156 from insertish/patch-1

mediawiki: add explicit volume definitions
yosifkit hace 3 años
padre
commit
ec316ecf80
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      mediawiki/stack.yml

+ 7 - 1
mediawiki/stack.yml

@@ -12,7 +12,7 @@ services:
     links:
       - database
     volumes:
-      - /var/www/html/images
+      - images:/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
@@ -27,3 +27,9 @@ services:
       MYSQL_USER: wikiuser
       MYSQL_PASSWORD: example
       MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
+    volumes:
+      - db:/var/lib/mysql
+
+volumes:
+  images:
+  db: