Missing SMB,CIFS in nextcloud

Okey i tried the Dockerfile stuff now several times but i don’t get it to work…

i used my docker with the docker-compose.yml :

version: '2'

volumes:
  nextcloud:
  db:

services:
  db:
    image: yobasystems/alpine-mariadb:latest
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - /var/lib/ncdata2/database2:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD="MyPassword"
      - MYSQL_PASSWORD="MyPassword"
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: build: ./var/lib/ncdata2
    ports:
      - 8080:80
    links:
      - db
    volumes:
      - /var/lib/ncdata2/nextcloud2:/var/www/html
    restart: always

And replaced the “image: nextcloud:latest” with "image: build: . "

My Dockerfile looks like this:

FROM nextcloud:apache

RUN apt-get update && apt-get install -y procps smbclient && rm -rf /var/lib/apt/lists/*

but i always get this error:

ERROR: yaml.scanner.ScannerError: mapping values are not allowed here
  in "./docker-compose.yml", line 21, column 17

I thouht that maybe i forgot a space but in my opinion everything seems fine or not? :man_shrugging:

Maybe you @KarlF12 know something and can tell my stupid mistake :sweat_smile:

1 Like