version: '3' services: nextcloud_db: image: postgres:alpine restart: always volumes: - ./db:/var/lib/postgresql/data environment: - "POSTGRES_DB=nextcloud" - "POSTGRES_USER=nextcloud" - "POSTGRES_PASSWORD=nextcloud1" 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"