Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


admin_grundlagen:docker

Dies ist eine alte Version des Dokuments!


Beispiel Webanwendung nextcloud mit Datenbank MariaDB:

nextcloud.yaml
version: '2'

volumes:
  nextcloud:
  db:

services:
  db:
    image: mariadb
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=asldfjaslfjadsf
      - MYSQL_PASSWORD=asldfjaslfjadsf
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: nextcloud
    ports:
      - 8080:80
    volumes:
      - nextcloud:/var/www/html
    restart: always
apt install docker-compose
docker-compose -f nextcloud.yaml
admin_grundlagen/docker.1583514818.txt.gz · Zuletzt geändert: 2020/03/06 17:13 von ingo_wichmann