version: '3.7' services: restserver: image: eikek0/docspell:restserver-0.6.0 container_name: docspell-restserver command: /opt/docspell.conf ports: - "7880:7880" volumes: - ${PWD}/docspell.conf:/opt/docspell.conf depends_on: - db db: image: postgres:11.7 container_name: postgres_db volumes: - postgres_data:/var/lib/postgresql/data/ environment: - POSTGRES_USER=dbuser - POSTGRES_PASSWORD=dbpass - POSTGRES_DB=dbname joex: image: eikek0/docspell:joex-0.6.0 container_name: docspell-joex command: /opt/docspell.conf ports: - "7878:7878" volumes: - ${PWD}/docspell.conf:/opt/docspell.conf depends_on: - db consumedir: image: eikek0/docspell:consumedir-0.6.0 container_name: docspell-consumedir command: --path /opt/docs -m http://restserver:7880/api/v1/open/upload/item/$SOURCE_ID environment: - SOURCE_ID=${SOURCE_ID:-none} volumes: - ${PWD}/docs:/opt/docs depends_on: - restserver volumes: postgres_data: