version: '3' services: app: build: ./nextcloud_fpm_full restart: always volumes: - ./nextcloud/html:/var/www/html - /mnt/data_nextcloud/data:/var/www/html/data environment: - POSTGRES_DB=nextcloud - POSTGRES_USER=nextcloud - "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" - "POSTGRES_HOST=10.128.0.95:5432" - "NEXTCLOUD_URL=nextcloud.auro.re" - "NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.auro.re" - "OVERWRITEHOST=nextcloud.auro.re" - "NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}" - "NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}" web: build: ./web restart: always volumes: - ./nextcloud/html:/var/www/html:ro environment: - NGINX_HOST=nextcloud.auro.re - NGINX_PORT=80 ports: - "8080:80" depends_on: - app