version: '3.6' services: docker: build: args: - DOCKER_BUILD_DIR=docker - GID=${GID} - IPFS_VERSION=${IPFS_VERSION:-0.16.0} - UID=${UID} - USER=${USER} context: ../ dockerfile: docker/Dockerfile ports: - 80 restart: always volumes: - ipfs:${HOME}/.ipfs:cached,ro - data:/var/www:delegated working_dir: /var/www volumes: ipfs: driver: local driver_opts: type: none device: ${HOME}/.ipfs o: bind data: driver: local driver_opts: type: none device: ${APP_DIR:-.} o: bind