version: '3' services: nextcloud_db: image: mariadb command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW restart: always volumes: - ./db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=hELLO@123 - MYSQL_PASSWORD=hELLO@123 - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud nextcloud: image: nextcloud-ocr build: ./docker/nextcloud ports: - 9900:80 links: - nextcloud_db volumes: - ./html:/var/www/html restart: always elasticsearch: image: nextcloud-es build: ./docker/elasticsearch ports: - 9200 environment: - "discovery.type=single-node"