--- services: nextcloud-fpm: depends_on: - redis environment: &redis-configuration REDIS_HOST: ${REDIS_CONTAINER_NAME:-redis} # Default name is same as ../redis/docker-compose.yml:4 nextcloud-cron: environment: <<: *redis-configuration